VSCode's Python Interactive mode is AMAZING!

VSCode's Python Interactive mode is AMAZING!

Jack of Some

4 года назад

360,922 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@edoson01
@edoson01 - 18.07.2021 20:57

This functionality exists for years in notebooks and jupyterlab - open console along side the notebook.

Ответить
@robosergTV
@robosergTV - 01.08.2021 02:42

do I even need pyCharm then?

Ответить
@usamairshad5729
@usamairshad5729 - 13.08.2021 07:48

Nice and easy explanation... good work mate

Ответить
@adventurousmale
@adventurousmale - 14.08.2021 19:35

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.

Ответить
@freddief939
@freddief939 - 07.09.2021 23:37

112 emacs users have disliked this video.

Ответить
@mickschilder3633
@mickschilder3633 - 10.09.2021 00:51

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

Ответить
@juliocardenas4485
@juliocardenas4485 - 11.09.2021 17:43

VERY useful, thank you.

Ответить
@YlmazDALKIRANscallion
@YlmazDALKIRANscallion - 13.09.2021 23:13

Thank you for the video!

Ответить
@MauroBueno
@MauroBueno - 06.10.2021 00:26

Thanks for this video, Jack! Thanks a lot!

Ответить
@stevepepple1800
@stevepepple1800 - 06.10.2021 01:42

Very cool workflow!
I was able to also get this working with remote development in a Vagrant/Docker VM.

Ответить
@MrTulufan
@MrTulufan - 06.10.2021 19:38

Is there a way to save the outputs inline with the code to a file just like the jupyter notebook?

Ответить
@sarveshdakhane6454
@sarveshdakhane6454 - 16.10.2021 13:40

Thanks !!..nicely explained

Ответить
@SylvStone
@SylvStone - 20.10.2021 14:33

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.

Ответить
@abhaysharma8569
@abhaysharma8569 - 26.10.2021 20:07

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.

Ответить
@lexborodai1639
@lexborodai1639 - 17.11.2021 21:57

I type # %% in the python file using visual studio code, but nothing happens / nothing changes / any additional options appear. What do I do wrong? :(

Ответить
@williambaumert7726
@williambaumert7726 - 02.12.2021 08:14

Wow this is really cool It's! It's very similar to rstudio's Rmarkdown interface!

Ответить
@cgabt1109
@cgabt1109 - 20.12.2021 02:43

This video changed my Python life, thx

Ответить
@neuroad1522
@neuroad1522 - 10.01.2022 21:45

Thanks! But aren't those features a replica of Spyder???

Ответить
@rodrigomeireles5966
@rodrigomeireles5966 - 20.01.2022 14:22

I followed your setup but sadly my plots were still in .png format.

Ответить
@rodrigobarrigagibson3400
@rodrigobarrigagibson3400 - 23.02.2022 01:35

This is insane and a total game changer for my workflow... Thanks a lot!

Ответить
@ruysg
@ruysg - 23.02.2022 03:31

That is just like a Matlab or Spyder environment, pretty cool

Ответить
@xSid19x
@xSid19x - 14.03.2022 08:45

How do you escape out of the interactive cell?

Ответить
@pawel040408
@pawel040408 - 23.03.2022 12:06

Really good overview - thanks for sharing. I've recently switched to VSC from Spyder and I keep discovering new cool features nearly every day!

Ответить
@angryferret101
@angryferret101 - 06.04.2022 13:38

This is so fricking sublime.

Ответить
@JJGhostHunters
@JJGhostHunters - 16.04.2022 20:23

Is there a "Variable Explorer" available in VSCode as there is in Sypder?

Ответить
@raymondchan3587
@raymondchan3587 - 13.05.2022 12:41

I don't know to to setup the intactive mode for vscode.

Ответить
@sohangchopra
@sohangchopra - 10.06.2022 10:14

Can't thank you enough for making this video - this is such an amazing feature! Can't believe I never heard about this before!

Ответить
@PaulFWatts
@PaulFWatts - 11.06.2022 02:23

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.

Ответить
@beto5720
@beto5720 - 09.07.2022 07:48

Bro this is dope af

Ответить
@noahbroyles8828
@noahbroyles8828 - 25.08.2022 01:38

I wish I could type that fast…

Ответить
@SamHartmannCom
@SamHartmannCom - 17.10.2022 22:34

Thanks a lot!
That's really cool!

Ответить
@yliu4093
@yliu4093 - 07.11.2022 00:33

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

Ответить
@elghark
@elghark - 22.11.2022 19:02

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?

Ответить
@NicholasWong-vv1nn
@NicholasWong-vv1nn - 27.11.2022 07:00

Anyone know if it is possible to open the interactive tab in another window, or detach the tab from the workspace?

Ответить
@rursus8354
@rursus8354 - 02.12.2022 18:28

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.

Ответить
@YJCheng
@YJCheng - 14.02.2023 23:57

VScode move between 'cells'? Spyder can do Ctrl+Down to jump to next cells.

Ответить
@sonu91932
@sonu91932 - 24.02.2023 15:12

but still the graphs are in jpeg and not in SVG format

Ответить
@kia4now
@kia4now - 31.03.2023 01:06

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!

Ответить
@fakt7814
@fakt7814 - 03.06.2023 21:12

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.

Ответить
@juanwoodcock5217
@juanwoodcock5217 - 16.09.2023 03:03

Very nice video.
+1 like and subscription

Ответить
@WhoWho-e3z
@WhoWho-e3z - 28.11.2023 21:38

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!

Ответить
@TheGoatsy
@TheGoatsy - 10.04.2024 15:19

I actually never used this to my benefit as well, but why should someone use this instead of a .ipynb file?

Ответить
@talkingbirb2808
@talkingbirb2808 - 27.05.2024 15:49

update: interactive mode does not generate svg images now and it is advised to use %matplotlib widget or something similar instead

Ответить
@blue_name_warrior
@blue_name_warrior - 30.06.2024 22:01

# %% but nothing happened?

Ответить
@gaboqv
@gaboqv - 23.09.2024 19:28

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

Ответить
@carnap355
@carnap355 - 29.12.2024 11:44

how did you call plot without importing matplotlib.pyplot as plt???

Ответить
@dtrcs9518
@dtrcs9518 - 29.03.2025 21:27

so, Rstudio?

Ответить
@KulturanCov
@KulturanCov - 10.05.2025 11:57

this is amazing. isnt this a jupyter notebook killer basically?

Ответить
@devvv4616
@devvv4616 - 23.05.2025 04:51

i dont get why you didnt mentioned we still need the Jupyter extension smh. had to figure out why it wasnt working

Ответить