Комментарии:
This functionality exists for years in notebooks and jupyterlab - open console along side the notebook.
Ответитьdo I even need pyCharm then?
ОтветитьNice and easy explanation... good work mate
ОтветитьTo enable 'shift + enter' to send line/selection to interactive window you first have to enable it in settings. This took me forever to figure out why it wasn't working right away.
Jupyter: Send Selection To Interactive Window
When pressing shift+enter, send selected code in a Python file to the Jupyter interactive window as opposed to the Python terminal.
112 emacs users have disliked this video.
ОтветитьI started out working in anaconda spyder, in which the standard kernel is interactive, and was shocked when I learned that this was not standard behaviour
ОтветитьVERY useful, thank you.
ОтветитьThank you for the video!
ОтветитьThanks for this video, Jack! Thanks a lot!
ОтветитьVery cool workflow!
I was able to also get this working with remote development in a Vagrant/Docker VM.
Is there a way to save the outputs inline with the code to a file just like the jupyter notebook?
ОтветитьThanks !!..nicely explained
Ответитьnice but it does not work for me (some info is missing here). I'd have some questions, what vsCode version are you using? once managed to install mumpy and matplotlib within a PowerShell CLI rather, all I got as output for that example: 'plot([0,1,2],[0,1,4])' is: <figure size 432x288 with 1 Axes> but displaying nothing.
ОтветитьI was trying to get a plot on my vscode for the last 4 hours. I just couldn't figure out what was missing. Thank you so much for this video, you probably saved another 4 hours of mine.
ОтветитьI type # %% in the python file using visual studio code, but nothing happens / nothing changes / any additional options appear. What do I do wrong? :(
ОтветитьWow this is really cool It's! It's very similar to rstudio's Rmarkdown interface!
ОтветитьThis video changed my Python life, thx
ОтветитьThanks! But aren't those features a replica of Spyder???
ОтветитьI followed your setup but sadly my plots were still in .png format.
ОтветитьThis is insane and a total game changer for my workflow... Thanks a lot!
ОтветитьThat is just like a Matlab or Spyder environment, pretty cool
ОтветитьHow do you escape out of the interactive cell?
ОтветитьReally good overview - thanks for sharing. I've recently switched to VSC from Spyder and I keep discovering new cool features nearly every day!
ОтветитьThis is so fricking sublime.
ОтветитьIs there a "Variable Explorer" available in VSCode as there is in Sypder?
ОтветитьI don't know to to setup the intactive mode for vscode.
ОтветитьCan't thank you enough for making this video - this is such an amazing feature! Can't believe I never heard about this before!
ОтветитьThanks for making this video. I didn't know this feature existed!
As you have pointed out it is amazing and so useful. Especially when you are a relative new comer to Python like myself.
I love Vscode and it just keeps getting better and better.
Bro this is dope af
ОтветитьI wish I could type that fast…
ОтветитьThanks a lot!
That's really cool!
Thanks but you go too fast and you need to emphasize the key steps. Honestly I still not sure how to duplicate wha you did. First how to pop up right interactive panel? 2nd were you using # %% to crest this interactive? Hope you can help me with these? Thanks
ОтветитьIt's the closest solution to my needs: I'm switching from Atom to VS Code and I'd like to find an equivalent way to run codes below my line script as I'm used to with Hydrogen. Doesn't exist a solution like that for VS Code?
ОтветитьAnyone know if it is possible to open the interactive tab in another window, or detach the tab from the workspace?
ОтветитьWorks nicely. It partially replaces the interactive mode gotten by starting python with the option -i, but not quite, because it takes too much space in the buffer. Personally I try to avoid VSC as much as possible because it doesn't respect tradition, but what is to be expected from Microsoft anyways? emacs is for serious programming though. That's the essence of tradition.
ОтветитьVScode move between 'cells'? Spyder can do Ctrl+Down to jump to next cells.
Ответитьbut still the graphs are in jpeg and not in SVG format
Ответитьis it possible to open the interactive window seperately, to mimic floating windows? Because running out of real estate on one screen
Great video and well explained, subscribed!
Wow, I didn't know about that. Me too have been using Jupyter a lot, then I switched to a regular step debugger, but the ability to use IPython with debugger is a game changer for me.
ОтветитьVery nice video.
+1 like and subscription
This is a lifesaver! I'm used to Matlab and recently picked up Python. It's great to check what I'm doing. Thank you!
ОтветитьI actually never used this to my benefit as well, but why should someone use this instead of a .ipynb file?
Ответитьupdate: interactive mode does not generate svg images now and it is advised to use %matplotlib widget or something similar instead
Ответить# %% but nothing happened?
ОтветитьI actually used this by accident one time and got a very silly bug where tabs where getting deleted when run on the interactive window, I will try to give it a try any way because I feel notebooks tend to create lots of repetitive code
Ответитьhow did you call plot without importing matplotlib.pyplot as plt???
Ответитьso, Rstudio?
Ответитьthis is amazing. isnt this a jupyter notebook killer basically?
Ответитьi dont get why you didnt mentioned we still need the Jupyter extension smh. had to figure out why it wasnt working
Ответить