VSCode's Python Interactive mode is AMAZING!

  Рет қаралды 346,746

Jack of Some

Jack of Some

4 жыл бұрын

I've gone from serial Jupyter Notebook user to someone that almost never uses them and it's all thanks to VSCode's interactive mode for Python. Check it out!
MY OTHER VIDOES:
○ A.I. Learns to play Snake • Neural Network Learns ...
○ 5 Common Python Mistakes: • 5 Things You're Doing ...
○ 5 Amazing Python Libraries: • Five Amazing Python Li...
○ Making Python fast: • Can VSCode be a reason...
○ Learning programming language Julia: • How to learn Julia, a ...
Twitter: / safijari
Patreon: / jackofsome
#python #vscode #notebooks

Пікірлер: 297
@rabbitazteca23
@rabbitazteca23 3 жыл бұрын
VS Code is just SOOO good. Kudos to everyone contributing in making it better and better with every update
@VictorVictory-te2ij
@VictorVictory-te2ij Күн бұрын
Excellent!
@PegasusDesigns
@PegasusDesigns 3 жыл бұрын
This is absolutely gamechanging! I have used VSC for a year and did not know about this. Thank you so much!
@eviltiki13
@eviltiki13 3 жыл бұрын
Been trying out VS code for Python and didn't know this existed. Very happy I found your short and informative video. Looking forward to trying it out. Thanks!
@ericervin2513
@ericervin2513 3 жыл бұрын
Excellent video! Short and sweet, hit all the high points, exactly what I was looking for. I couldn't figure out how to open the interactive interpreter for non- ipynb files and presto you showed me that and much more.
@TheJunglist
@TheJunglist 4 жыл бұрын
This is fantastic, I've been looking for something like this for so long!
@JanneSauvala
@JanneSauvala 3 жыл бұрын
Cool feature! Interactive development with the integration between editors and REPLs were the reason why I fall in love with Clojure (and in other LISPs) and this starts to be something similar to that.
@vaskoa
@vaskoa 3 жыл бұрын
Now this, this looks amazing. I've been looking something like this for a while, something that has the feel and experience of a CAS but with a sane syntax and documentation. Awesome
@sohangchopra6478
@sohangchopra6478 2 жыл бұрын
Can't thank you enough for making this video - this is such an amazing feature! Can't believe I never heard about this before!
@anon343
@anon343 3 жыл бұрын
This is literally a whole new way of running code and I love it. Thanks. You earned yourself a sub!
@karnasaurav
@karnasaurav 3 жыл бұрын
That's awesome man. I have been switching between .py files and notebooks a lot. This is just awesome. THANKS!!
@smithright
@smithright 3 жыл бұрын
I'm new to Python, taking my first steps to learning a full stack. This is the best editor setup I've found anywhere. Thanks so much for posting!!! 😁
@pawel040408
@pawel040408 2 жыл бұрын
Really good overview - thanks for sharing. I've recently switched to VSC from Spyder and I keep discovering new cool features nearly every day!
@stoicfloor
@stoicfloor 4 жыл бұрын
I used to need to switch to Chrome for Jupyter notebook but now not anymore!
@JackofSome
@JackofSome 4 жыл бұрын
Exactly!
@PaulFWatts
@PaulFWatts 2 жыл бұрын
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.
@marcus.the.younger
@marcus.the.younger 3 жыл бұрын
from pycharm to sublime text, i have tried many IDEs and editors but vscode tops them all... i absolutely love it
@joleif4970
@joleif4970 3 жыл бұрын
pycharm also has this feature btw :) (butthurt jetbrains fanboy over here haha)
@jthomas3584
@jthomas3584 10 күн бұрын
What does VSCode have that PyCharm doesn't? Genuinely asking as I've been using PyCharm/Jetbrains products for a while now. I find that even for non-Python development, PyCharm seems to do the trick.
@MauroBueno
@MauroBueno 2 жыл бұрын
Thanks for this video, Jack! Thanks a lot!
@Q_20
@Q_20 3 жыл бұрын
Combined with live share, this is revolutionizing collaborative research.
@rodrigobarrigagibson3400
@rodrigobarrigagibson3400 2 жыл бұрын
This is insane and a total game changer for my workflow... Thanks a lot!
@ViniciusRaphael
@ViniciusRaphael 3 жыл бұрын
Man this is amazing. Seriously. Thanks for sharing. I'll definetely try. It's kind frustrating to have to create in jupyter and then change to py to create an exec. Will try for sure.
@stevepepple1800
@stevepepple1800 2 жыл бұрын
Very cool workflow! I was able to also get this working with remote development in a Vagrant/Docker VM.
@usamairshad5729
@usamairshad5729 2 жыл бұрын
Nice and easy explanation... good work mate
@user-ht7gg8xs3u
@user-ht7gg8xs3u 7 ай бұрын
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!
@malanb5
@malanb5 3 жыл бұрын
Awesome, didn't know about this integration. thanks for sharing!
@abhaysharma8569
@abhaysharma8569 2 жыл бұрын
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.
@pleabargain
@pleabargain 3 жыл бұрын
Learned a lot. Thank you.
@ko-Daegu
@ko-Daegu 3 жыл бұрын
Your channel is basically group of great hidden gem altogether in one place
@marcus.the.younger
@marcus.the.younger 3 жыл бұрын
might as well change the channel name to Laugh Tale
@losiu998
@losiu998 3 жыл бұрын
I've been using this for one year now. Cant imagine programming in python without this
@HorusEagletus
@HorusEagletus 4 жыл бұрын
Wow thanks for sharing! It is fantastic.
@SamHartmannCom
@SamHartmannCom Жыл бұрын
Thanks a lot! That's really cool!
@abduvosidmalikov
@abduvosidmalikov 3 жыл бұрын
This was new for me. Thanks!
@YlmazDALKIRANscallion
@YlmazDALKIRANscallion 2 жыл бұрын
Thank you for the video!
@FlavioBarrosProfessor
@FlavioBarrosProfessor 3 жыл бұрын
It is like working with R and RStudio
@MHNK77
@MHNK77 3 жыл бұрын
Not really. If you want that, using F9 in Spyder is where it's at
@xlw12
@xlw12 3 жыл бұрын
More like matlab :)
@abhishekswain2502
@abhishekswain2502 3 жыл бұрын
Thanks for this ! This is very cool 😎
@TehAtomiq
@TehAtomiq 3 жыл бұрын
I am very used to matlab and this is exactly what i was missing from VS code. Thanks!!
@karlduckett
@karlduckett 3 жыл бұрын
Damn this is really cool! Still have a soft spot to Jupyter Labs. I guess it would be good to build the notebook in VS - then export the final version back to Jupyter to export to HTML with the markdown and interactive widgets. :)
@summerstream4809
@summerstream4809 3 жыл бұрын
Found this on reccomendation; this is really worth spreading.
@sarveshdakhane6454
@sarveshdakhane6454 2 жыл бұрын
Thanks !!..nicely explained
@josephchillemi7523
@josephchillemi7523 3 жыл бұрын
Wow, didn't know. Thank you so much!
@HansBaier
@HansBaier 3 жыл бұрын
This is awesome! Thanks!
@juliocjacobo
@juliocjacobo 3 жыл бұрын
Very good feature, and excellent video!!
@kieranpeleaux
@kieranpeleaux 3 жыл бұрын
this is super helpful, thanks! just out of curiosity, how did you get the "Save As" file naming functionality (02:03) in the command palette vs. the usual "Save As" dialog that opens in a new window?
@juliocardenas4485
@juliocardenas4485 2 жыл бұрын
VERY useful, thank you.
@DIYGURUJI
@DIYGURUJI 3 жыл бұрын
Damn, I didn't know that before Thanks🔥🔥
@PaulaBean
@PaulaBean 3 жыл бұрын
This was very helpful.
@izzyr9590
@izzyr9590 3 жыл бұрын
Wow even the debugger! I liked the debugger set up in Eclipse for Java. I didn’t know python had it too in VSCode! This is awesome
@digigoliath
@digigoliath 3 жыл бұрын
Awesome!!! TQVM!!
@cgabt1109
@cgabt1109 2 жыл бұрын
This video changed my Python life, thx
@animeshsingh4290
@animeshsingh4290 4 жыл бұрын
Just saw these ina a Tech with Tim video, these are some really useful features.
@JackofSome
@JackofSome 4 жыл бұрын
Just found that video. Significantly better than mine :D
@JerryAsher
@JerryAsher 3 жыл бұрын
Hmm, can you link to that video?
@shelupinin
@shelupinin 3 жыл бұрын
Cool, thanx for that knowledge
@user-or7ji5hv8y
@user-or7ji5hv8y 3 жыл бұрын
Truly cool. What key word can I Google to learn more?
@ahmed-salem
@ahmed-salem 3 жыл бұрын
No idea who are the 25 people that dislike a video like that!!... 😂😂. Thanks man for the video.. Such a game changer!
@kwkarlwang
@kwkarlwang 3 жыл бұрын
I want to inform you that I was able to get this exact feature on emacs on a normal .py file using code-cells, which recognizes # %% as a cell, and emacs-jupyter, which serves as a REPL that evaluates the python code, and is also able to render inline plot.
@_free_explorer
@_free_explorer 3 жыл бұрын
Wow this just changed my python programming life O_O
@fakt7814
@fakt7814 Жыл бұрын
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.
@amberniesalting9011
@amberniesalting9011 3 жыл бұрын
That's actually insane!
@naturheilkunde-kanal9814
@naturheilkunde-kanal9814 3 жыл бұрын
Sounds great! I tried it with my VSCode on OSX but get an error message: "Cannot open resource with notebook editor type 'jupyter-notebook', please check if you have the right extension installed or enabled." What extension do I need?
@JackofSome
@JackofSome 3 жыл бұрын
Do you have the python extension from microsoft installed?
@Deevil992
@Deevil992 3 жыл бұрын
Just curious if it is possible to load the python kernel in Jupyter from the terminal? That would actually do the same thing right?
@kia4now
@kia4now Жыл бұрын
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!
@user-md7yv4mw7e
@user-md7yv4mw7e 3 жыл бұрын
Is there any way to make VSCode help with function arguments as Jupyter notebook does when you press SHIFT+TAB?
@dembasiby
@dembasiby 3 жыл бұрын
Thank you!
@khanhtruong3254
@khanhtruong3254 3 жыл бұрын
That's amazing. But it seems that I can only run the interactive mode at the end of the python script, i.e. I can't come back to normal scripting unless I delete all the interactive code. Is there anyway to select a subset (in the middle) of the script to run interactive mode?
@pope-pylinux-vi
@pope-pylinux-vi 3 жыл бұрын
Great video, thank you. Looks like you also have the same problem with pylint as I do (I mean the pop-up near the end). I have it installed but this pop-up shows up every time I start vscode. Can't figure out the cause.
@misimik
@misimik 3 жыл бұрын
You can get this type of workflow with Spyder IDE with Matlab View mode, but with better current variables window.
@beto5720
@beto5720 2 жыл бұрын
Bro this is dope af
@angryferret101
@angryferret101 2 жыл бұрын
This is so fricking sublime.
@psykowarior
@psykowarior 3 жыл бұрын
Thanks this is usefull.
@Omgtired
@Omgtired 3 жыл бұрын
Working in python in the same manner, the big advantage of this mode over notebook is that it supports all additional "syntax checkers" whereas juniper notebook mode does not
@hashisgod
@hashisgod 3 жыл бұрын
juniper? :O
@Omgtired
@Omgtired 3 жыл бұрын
@@hashisgod jupyter 😁 that's a typo
@hashisgod
@hashisgod 3 жыл бұрын
@@Omgtired i prefer the name juniper!
@williambaumert7726
@williambaumert7726 2 жыл бұрын
Wow this is really cool It's! It's very similar to rstudio's Rmarkdown interface!
@iamkapilkalra
@iamkapilkalra 3 жыл бұрын
Fantastic! :: Chef's Kiss ::
@MrTulufan
@MrTulufan 2 жыл бұрын
Is there a way to save the outputs inline with the code to a file just like the jupyter notebook?
@HadesTimer
@HadesTimer 3 жыл бұрын
is there anyway this can be added to your python environment by default? So I don't have to remember to add it everytime.
@vitormendonca2905
@vitormendonca2905 3 жыл бұрын
Cool but.. i'm a begginer in programing, why should i use a code editor like Visual Studio? Just for the shortcuts? (Isn't pycharm enough?)
@PraecorLoth970
@PraecorLoth970 4 жыл бұрын
Well, this really looks like the Spyder IDE, at least what I remember of it. It has been a few years since I used it. And is kinda like Matlab also, but that doesn't have inline graphs. I think I will stick to notebooks still because I like having the code and the graphs in one document, and not having to re-run it in case I need to see the graphs again. In any case, one could export .ipynb files to executable .py files and very easily convert them to the format VSCode uses, just need to alter the comment lines between each cell. I haven't tested it, but seems trivial. I have often seen people criticize the use of notebooks because they give you bad development practices. One problem I've had more than once was re-running a notebook and getting NameErrors, often because I moved stuff around. How do you deal with that?
@JackofSome
@JackofSome 4 жыл бұрын
I totally get the "notebook as a complete document" approach and it makes a lot of sense in many contexts. For me notebooks are more about exploration/prototyping/development and less about communication so that's why this makes more sense for me. Exporting .ipynb can run into issues, though nbdev is admittedly a really good solution github.com/fastai/nbdev No real solution for the out of order execution issues. We kind of sign up for that doing this no? A saving grace of using interactive mode is that I have access to all my normal keybindings, so restructuring code is really fast and intuitive.
@PraecorLoth970
@PraecorLoth970 4 жыл бұрын
@@JackofSome thanks for the link, I had heard about nbdev, I think I might give it a shot, although I'm not really developing stuff recently. I do mostly data analysis, hence my preference for notebooks. I am working on consolidating some stuff to share with colleagues, and nbdev might be cool. I think I just need more discipline when coding, and periodically reset the environment, to catch those errors. I mean, I use notebooks for reproducibility in science, and fear rerunning them? Makes no sense.
@NicholasWong-vv1nn
@NicholasWong-vv1nn Жыл бұрын
Anyone know if it is possible to open the interactive tab in another window, or detach the tab from the workspace?
@ruysg
@ruysg 2 жыл бұрын
That is just like a Matlab or Spyder environment, pretty cool
@artistscientist2848
@artistscientist2848 3 жыл бұрын
@Jack Of Some Does someone know the keyboard shortcut move the cursor from the editor to the console where we can type code?
@JackofSome
@JackofSome 3 жыл бұрын
Unfortunately no. Sorry
@inkt34
@inkt34 3 жыл бұрын
Nice video, is there also a way to move the interactive notebook screen to e.g., the bottom of VS code? So that the .py file and the python interactive window are on top of each other?
@JackofSome
@JackofSome 3 жыл бұрын
VSCode has horizontal stacking of windows. You'd have to Google how though I always forget
@timseguine2
@timseguine2 3 жыл бұрын
I never really found any personal benefit to jupyter notebooks or interactive mode in the past, because the user experience for the text editor always seemed pretty terrible, but this looks pretty slick, actually.
@Arcadius1989
@Arcadius1989 4 жыл бұрын
What I lack with the python interactive shell of vscode is that it does not support vim bindings. You can't yank code from the shell, and as I have the vim extension, CTRL-C and CTRL-V dont'work. Anybody got a suggestion to fix that?
@JackofSome
@JackofSome 4 жыл бұрын
I feel your pain on that. I think it's an open issue right now to allow modal editing in the shell. C-c and C-v tend to work fine for me so unfortunately no insights on that issue :(
@SylvStone
@SylvStone 2 жыл бұрын
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: but displaying nothing.
@giaphatha88
@giaphatha88 3 жыл бұрын
Super cool! I didn t know vscode python support is so good now, time to ditch pycharm
@adamduma3565
@adamduma3565 3 жыл бұрын
nice. thanks
@cloutQ51
@cloutQ51 3 жыл бұрын
great man
@cenkulukaya
@cenkulukaya 3 жыл бұрын
This was the only reason I was using Sublime. That was eye opening. Thank you.
@holski77
@holski77 3 жыл бұрын
THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!!!!
@sagigamil460
@sagigamil460 3 жыл бұрын
Amazing; can I use it to run pytest tests?
@gargeyasharma4858
@gargeyasharma4858 3 жыл бұрын
It's just spider IDE from anaconda distribution. But ofcourse its super cool and useful
@eduardoluisbaptista3297
@eduardoluisbaptista3297 3 жыл бұрын
Exactly! As a data analyst I'm not changing from Spyder to VS just because of this, to be honest.
@f3arbhy
@f3arbhy 3 жыл бұрын
Maybe a little brag here. One of the IDEs that comes with vanilla Anaconda installation is called Spyder, and it focuses almost entirely on a setup like that. There is a ( rather less capable) text editor, an interactive python shell, variable explorer etc. I started using that when I started learning python, and to be honest, it robbed me my ability to write decent .py files, as I use the text editor as a" code snippet bucket" and runs the code on the IE in chunks. I think , if you are starting out, you should really write your code in a single file and run the file. It helps alot in the long run.
@MiguelVazquez-kj2ve
@MiguelVazquez-kj2ve 3 жыл бұрын
I am genuinely elated / muchas gracias amigo ...
@xSid19x
@xSid19x 2 жыл бұрын
How do you escape out of the interactive cell?
@saumyakraj1462
@saumyakraj1462 3 жыл бұрын
What's the shortcut to create a new cell below the current cell without executing it? Amazing and well explained video btw!!
@JackofSome
@JackofSome 3 жыл бұрын
I'm not sure if there's a shortcut but you can just write the comment and it will split the call
@fakeaccount4563
@fakeaccount4563 3 жыл бұрын
alt + enter
@theoutlet9300
@theoutlet9300 3 жыл бұрын
i cant imagine working with data in a code editor without this feature.
@lucagreggio2278
@lucagreggio2278 3 жыл бұрын
This is like matlab, it's crazy, make me discover an incredible thing!
@TileBitan
@TileBitan 3 жыл бұрын
it doesnt take 2 lifetimes to open tho! nothing beats the original xd
@JJGhostHunters
@JJGhostHunters 2 жыл бұрын
Is there a "Variable Explorer" available in VSCode as there is in Sypder?
@jimgriesmer7511
@jimgriesmer7511 2 жыл бұрын
Yes. It's in the toolbar. Not as full featured as Spyder yet, but it works. :)
@jtadams783
@jtadams783 3 жыл бұрын
I started learning python a few years ago. Thank you for reminding me how little I know.
@elghark
@elghark Жыл бұрын
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?
@TunioMir
@TunioMir 3 жыл бұрын
Correct me if I'm wrong but Spyder (in Anaconda) has been doing this for years right?
@davidvargas3731
@davidvargas3731 3 жыл бұрын
Is there a quick way to remove all the `# %%` after you're done working on a file?
@talkingbirb2808
@talkingbirb2808 Ай бұрын
update: interactive mode does not generate svg images now and it is advised to use %matplotlib widget or something similar instead
@user-hj8rn5wp8z
@user-hj8rn5wp8z 3 жыл бұрын
Love to see it in PyCharm
Make Python code 1000x Faster with Numba
20:33
Jack of Some
Рет қаралды 441 М.
How to Set up VS Code for Data Science & AI
22:53
Dave Ebbelaar
Рет қаралды 284 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 7 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 58 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 63 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 51 МЛН
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Python is NOT Single Threaded (and how to bypass the GIL)
10:23
Jack of Some
Рет қаралды 107 М.
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 214 М.
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 277 М.
A.I Learns Snake And Wins - Part 1
2:31
ezra anderson
Рет қаралды 1,3 МЛН
Ray: Faster Python through parallel and distributed computing
9:41
Powerful VSCode Tips And Tricks For Python Development And Design
15:50
Jupyter Notebooks vs Python Scripts | When to Use Which?
13:07
ArjanCodes
Рет қаралды 41 М.
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 7 МЛН