Thanks for this! My sense has always been that notebooks don't lend themselves well to good scripting habits and clear thinking - you have just confirmed that hunch!
Notebooks are great for experimentation and sharing code, but if you want to bring code into production you need a more structured way of writing code ;)
Great video! I begun to learn Python from Jupiter Notebook, and what I've done in the first courses was exactly related to work with small appsto run on dashboards, plots, datasets (pandas of course, sql), then I switched to another more general course where we work in VSCode, so I even forgot/ pushed back wgat was done on the first steps, so yoy give me a vision howvto ties these all up. For me settings/figuring out configurations might be even more complicated than just to write functionality, but it's all connected.
Thank you so much man, I just started learning data analysis and I needed this video as I don't like to work with jupyter, quick question which macbook you recommend ?
As a data science student, who have a really difficult lecture drive deep to algorithm and mathematical magic, I have to type a hugeeee thank you for your video. Having a ton of knowledge but cannot even control the coding program is most of the research data science student ( including me). Thanks for your great videos.
Hey when I open a project that I worked on before with an interactive window, more often than not, I have to run all the commands in the notebook again despite saving it. Is there a way for me to reopen saved projects with the interactive notebook saved as before?
Probably it was an error while setting up but even after importing the jupyter notebooks from github, it still fails to use 'import pandas' feature. Sorry, starting Python in VS code as a beginner. I had to use %pip install pandas to get going. is there some tip to avoid this in the future.
This is the best tutorial on setting up a data science VS Code environment I have ever seen. Your videos are very thorough and also to the point. Please keep sharing these. You have already improved my productivity x2 by explaining the Jupyter trick.
As a DS enthusiast and someone who is working with Python for many years now, I was never really able to settle with Jupiter Notebook and I am glad someone has covered this topic well! Great job Dave! 👏👏👏
Thanks, great content. I was struggling with the "send selection" option in the jupyter settings it has been renamed to "text editor: execute selection".
I'm still learning about data analysis and this week I am studing about how to use the virtual environment so if I decide to start to use VScode for my data science project's, do I need to create the virtual environment in workspace, activate it, but how to switch the kernell of my notebook's? This must be a ridiculus question but I really would like to use vscode but the majority tutorial's explain venv but using notebooks in local host.
Hi Dave, thank you very much for this awesome video, I just randomly found your video and not regret to watch it. But after following your tutorial in this video, I face some issue, they are: how to create or set virtual environment and how to set kernell on VScode, because everytime I tried to run python code in jupyter notebook extension for VScode, it's ask me to set ipykernell package, do you have video about this? I would very like to watch it.
Thanks for this great tutorial ! i am new to the hole Gen Ai, ML, DNN and Python. It would been great to know whitch liberty you are using, and how you set up data, docs, models and so on folders, in the demo folder. Maybe you can explain this in text? or make an short add-on video for us newbees.
Cool video! Thanks Just a suggestion: could you make fonts bigger, everything looks super small if you don't have a huge screen... (or maybe change the size of the screen while you record...)
I've transition from notebooks to .py using the method in this video. While overall I think vs code using the interactive window is better especially for large notebooks. However I have two items I don't like: 1. In jupter lab I can create a markdown cell and use # to make an outline of my notebook that I can navigate through my notebook. VS codes seems to generate the outline for you based on functions. I often don't use functions so navigating the document is worst to me. 2. The other con I will say is that if I run the top half of my script and run it I can tell where my program is within the script. Additionally when there's an error sometimes it take me a minute to orient myself using the error message to know where the error is within my script. The error message normally does tell me where the error is, but just scrolling to where the program stops within a notebook is more intuitive. However performance is so much better in a .py file especially when it gets large. Also I really like I don't need to create new cells to view things which does make my code so much cleaner. So overall it's way better, but I do wish there was a way to at least address the outline.
bro my packages are not running. Import "pandas" could not be resolved from sourcePylance(reportMissingModuleSource) and i want to use pip install but there is no permission because of homebrew but i cant set with brew it. how can i set can you help me
When I run the same code you did at 15:30, my terminal reads: FileNotFoundError: [Errno 2] No such file or directory. But if I run it in an interactive window, it works fine. What's wrong with my terminal lol? Pls help
Now the only things that are missing for me are 1) execute entire code chunk (without having to declare them with #%%) and 2) move to next line/code chunk after executing. Quite a bummer that this still isn't implemented for python in VS Code 😢
The part where you can get the code to run in the interactive is pretty neat! Solid point on the fact that you can write production code whiles testing in Jupyter. The is such a great option to get a python beginner to leave the Jupyter notebook coding mindset to writing production level code! I know I definitely would be using it more to help me build confidence in my python programming! Great shout Dave!
for a complet novis this is not the video to watch, its obvious that dave knows what he's doing and talking about but the goes through the subject and the process way to fast, no time to keep stop starting
You may be a good Data Scientist. Do set an easily viewable resolution/zoom level for the audience next time while demonstrating on screen. In Visual Studio Code, you can press "Ctrl and +" together to zoom in and "Ctrl and -" to zoom out. Thanks again for doing this video for beginners. 😃👍
Dave, thanks for the video. Something I'd like to mention; the recorder you're using has stereo mics. So when you move your head around, your voice also pans left or right. I'd suggest making your voice mono so it always comes from the center.
Hi Dave, appreciated the vid chat last night. Amazing video tutorial, new skill learned. A dumb question to ask, where is the Demo folder we can access from? :)❤
@@daveebbelaar Thank you for the reply. Oh yeah I was following along with your tutorial and I think you had a demo folder open, I was looking for it so I can do exactly what you do. But I just let it pass and went on with the actual bootcamp for the Tracking Barbell exercises you made. Can’t thank you enough for the step by step lesson. VS truly is a game changer, so thank you thank you thank you. Learn a ton 🍸! already a fan of the channel, Keep up the good work 🤟
Dave : Great video. Thanks for sharing this great stuff.. Moving to VS Code for all DS work.. earlier I was using VS code and Jupyter notebook for different kind of work which wasn't efficient. Thanks again !
First Dave I would like to thank you for your work you deserve much more views and subscribers, I'm moving to VS code I used to work with Jupyter(alone) and Spyder but VS code is much more convenient it was very helpful.
I have never seen the Jupyter Send before and I am trying it out and messing around / following along as I type this. I totally agree I think this will be a real game changer for me for testing and messing around and productivity in my coding journey. Thanks!!
I’m totally new to this, so for most people watching this it may be a dumb question, but the video starts off with a ‘blank VS Code file’ already opened. Is this a text file? A jupyter notebook file? I tried watching passed that and using a text file, but it wouldn’t give me the option to "save as”, so I stopped watching the video at about 4 minutes in. Not a helpful video. :-(
This tutorial assumes that you're using Python for data science. And all the extensions you have provided are used not only in data science, but in Python in general. The title should've been "How to Set up VS Code for Python Development"
fyi, you can easily convert any Jupyter notebook file (.ipynb) to a python file (.py) by using 'File' -> 'Download as' -> 'Python (.py)'. My blind friend also prefers working in the VScode python environment because his JAWS screen reader never reads the output section below a cell that was run.
I have installed vs code. But I can not change the environment within it to run ML libraries. It comes up with PS c:\.... instead of base PS c:\... so it does not even recognize conda, I have all that setup and run no problem from power shell but not from vs code. Does visual studio do everything that vs code does, in that case I do not need vs code.
Someone help me please with my vscode. Sometimes IntelliCode won't work on me suddenly, like in the middle of doing something and it won't suggest or autocomplete. What should I do? Thanks so much!
What an insightful video content! Really appreciate it. However, I have one question. I went followed all the steps discussed on the video but when I tried to run my own code it threw me an error of pandas *ModuleNotFoundError*. Shouldn't it had been installed at the same moment of the python extension?
Wow this was exactly the video I was looking for. The settings and extensions made the coding way more fun and it is nice to look at the data with the notebook. Thank You.
Similar benefit of both code wise execution and file wise execution can be enjoyed in spyder 5 as well, although did not compare the two for finding which one is better for the fitness tracker project.
Thank you for this workflow! Clear explanation and I love the last part where you can run/dissect code chunk by chunk by sending python script to jupyter notebook interface. Game changer! Not going back to jupyter notebook now
hello, i have been having issures upgrading the python 2.7 that came with my mac. and so i have been unable to install, pip, pandas and matplotlib. i really need help please
Great video! Had no idea you could setup this type of environment in VS Code. I was actually bummed when starting to learn Python I feel like I had to start from scratch by using PyCharm. Definitely going this path now I know it can be done. Thanks!
It is nice to see that vscode gets close to R in Rstudio in running code. But, still, I see that we need to select for example function definition all. This wil be similar to run loops for example. I think this needs to improve I think this is still not effective so much. I am curious if this is a Python requirement to select a multiline statement to run.
👉🏻 2024 Update For this Video: ua-cam.com/video/mpk4Q5feWaw/v-deo.html
That interactive window piece is outstanding. THANK YOU! 🙏
Thanks for this! My sense has always been that notebooks don't lend themselves well to good scripting habits and clear thinking - you have just confirmed that hunch!
Notebooks are great for experimentation and sharing code, but if you want to bring code into production you need a more structured way of writing code ;)
Great video! I begun to learn Python from Jupiter Notebook, and what I've done in the first courses was exactly related to work with small appsto run on dashboards, plots, datasets (pandas of course, sql), then I switched to another more general course where we work in VSCode, so I even forgot/ pushed back wgat was done on the first steps, so yoy give me a vision howvto ties these all up. For me settings/figuring out configurations might be even more complicated than just to write functionality, but it's all connected.
wow i love this! def game changing for coding.
Thank you so much man, I just started learning data analysis and I needed this video as I don't like to work with jupyter, quick question which macbook you recommend ?
As a data science student, who have a really difficult lecture drive deep to algorithm and mathematical magic, I have to type a hugeeee thank you for your video.
Having a ton of knowledge but cannot even control the coding program is most of the research data science student ( including me).
Thanks for your great videos.
Hey when I open a project that I worked on before with an interactive window, more often than not, I have to run all the commands in the notebook again despite saving it. Is there a way for me to reopen saved projects with the interactive notebook saved as before?
Great to see your contents
Great setup bro!
should place your affiliate mic link here. nice sound man!
Really great tutorial :))))))))) thanks man
Probably it was an error while setting up but even after importing the jupyter notebooks from github, it still fails to use 'import pandas' feature. Sorry, starting Python in VS code as a beginner. I had to use %pip install pandas to get going. is there some tip to avoid this in the future.
thank you great video...is there a place i can download the demo default workspace folders to save time?
Have you figured out how to do this?
Subscribed.
You can also virtualise cells just like in a jupyter notebook file. Just use #%% cell magic.
good job brother
🙏🏻
wish you were zooming your video
This is the best tutorial on setting up a data science VS Code environment I have ever seen. Your videos are very thorough and also to the point. Please keep sharing these. You have already improved my productivity x2 by explaining the Jupyter trick.
Thanks Dagart 🙏🏻
Installed extensions:
- Azure Account
- Code Runner
- CodeSnap
- Docker
- Edit csv
- IoT Device Cube
- Jupyter
- Jupyter Keymap
- Material Icon Theme
- Python Extension Pack
- autoDocstring
- IntelliCode
- Path Intellisense
- Python
- Pylance
- isort
- Python Environment Manager
- Python Indent
- autoDocstring
- (not installed) Django
- (not installed) Jinja
- Remote Development
As a DS enthusiast and someone who is working with Python for many years now, I was never really able to settle with Jupiter Notebook and I am glad someone has covered this topic well! Great job Dave! 👏👏👏
The important thing that you missed is setting up the Python interpreter and virtual environment in VSCode.
One suggestion, for laptop users this video is too zoomed out and really hard to watch.
tnx it made my problem vanish in a second
Thanks, great content. I was struggling with the "send selection" option in the jupyter settings it has been renamed to "text editor: execute selection".
Want to see how I use this setup to tackle a complete machine learning project? Watch this: ua-cam.com/video/cCONIdrM2VI/v-deo.html
I'm still learning about data analysis and this week I am studing about how to use the virtual environment so if I decide to start to use VScode for my data science project's, do I need to create the virtual environment in workspace, activate it, but how to switch the kernell of my notebook's?
This must be a ridiculus question but I really would like to use vscode but the majority tutorial's explain venv but using notebooks in local host.
Hi Dave, thank you very much for this awesome video, I just randomly found your video and not regret to watch it. But after following your tutorial in this video, I face some issue, they are: how to create or set virtual environment and how to set kernell on VScode, because everytime I tried to run python code in jupyter notebook extension for VScode, it's ask me to set ipykernell package, do you have video about this? I would very like to watch it.
Thanks for this great tutorial ! i am new to the hole Gen Ai, ML, DNN and Python.
It would been great to know whitch liberty you are using, and how you set up data, docs, models and so on folders, in the demo folder.
Maybe you can explain this in text? or make an short add-on video for us newbees.
Cool video! Thanks
Just a suggestion: could you make fonts bigger, everything looks super small if you don't have a huge screen... (or maybe change the size of the screen while you record...)
Very cool feature the last one you showed. I saw a video of someone using VS with jupyter and saw that potential. Now I've confirmed it.
I've transition from notebooks to .py using the method in this video. While overall I think vs code using the interactive window is better especially for large notebooks.
However I have two items I don't like:
1. In jupter lab I can create a markdown cell and use # to make an outline of my notebook that I can navigate through my notebook. VS codes seems to generate the outline for you based on functions. I often don't use functions so navigating the document is worst to me.
2. The other con I will say is that if I run the top half of my script and run it I can tell where my program is within the script. Additionally when there's an error sometimes it take me a minute to orient myself using the error message to know where the error is within my script. The error message normally does tell me where the error is, but just scrolling to where the program stops within a notebook is more intuitive.
However performance is so much better in a .py file especially when it gets large. Also I really like I don't need to create new cells to view things which does make my code so much cleaner. So overall it's way better, but I do wish there was a way to at least address the outline.
bro my packages are not running.
Import "pandas" could not be resolved from sourcePylance(reportMissingModuleSource)
and i want to use pip install but there is no permission because of homebrew
but i cant set with brew it. how can i set can you help me
This guide is "top dollar"! Really useful, and very clear. This has helped me out significantly. Well done! +1sub
When I run the same code you did at 15:30, my terminal reads: FileNotFoundError: [Errno 2] No such file or directory.
But if I run it in an interactive window, it works fine. What's wrong with my terminal lol? Pls help
Being able to send the output to a jupyter kernel is amazing. Thanks for sharing! I've been looking for something like this for a while
Now the only things that are missing for me are 1) execute entire code chunk (without having to declare them with #%%) and 2) move to next line/code chunk after executing. Quite a bummer that this still isn't implemented for python in VS Code 😢
The part where you can get the code to run in the interactive is pretty neat! Solid point on the fact that you can write production code whiles testing in Jupyter. The is such a great option to get a python beginner to leave the Jupyter notebook coding mindset to writing production level code! I know I definitely would be using it more to help me build confidence in my python programming! Great shout Dave!
Thanks Adu! Yea, it's a real game changer to start working like this
for a complet novis this is not the video to watch, its obvious that dave knows what he's doing and talking about but the goes through the subject and the process way to fast, no time to keep stop starting
You may be a good Data Scientist. Do set an easily viewable resolution/zoom level for the audience next time while demonstrating on screen. In Visual Studio Code, you can press "Ctrl and +" together to zoom in and "Ctrl and -" to zoom out. Thanks again for doing this video for beginners. 😃👍
Thanks for the tips!
HUGE thanks for this video and specially for the setup of the jupyter interactive window.
You made VS Code so much easier for me to understand and use for my analysis. Thanks, you're a lifesaver!
Thanks man! Do you consider making a V2 video on this?
Would have been nice to have a copy of your starting folder to make it easier to follow along.
Can this example of debugging a python file plot images using matplotlib?
Just switched from Frontend Dev to Data Engineer, this was so useful, thank you a lot for it!
Awesome video
Thank you so much for sharing your knowledge
Dave, thanks for the video. Something I'd like to mention; the recorder you're using has stereo mics. So when you move your head around, your voice also pans left or right. I'd suggest making your voice mono so it always comes from the center.
I second that. It makes it extra difficult to concentrate when using earphones.
Hi Dave, appreciated the vid chat last night. Amazing video tutorial, new skill learned. A dumb question to ask, where is the Demo folder we can access from? :)❤
Hi Peter, it was a pleasure talking to you! What do you mean with Demo folder? (It's been a while since I've recorded this video)
@@daveebbelaar Thank you for the reply. Oh yeah I was following along with your tutorial and I think you had a demo folder open, I was looking for it so I can do exactly what you do. But I just let it pass and went on with the actual bootcamp for the Tracking Barbell exercises you made. Can’t thank you enough for the step by step lesson. VS truly is a game changer, so thank you thank you thank you. Learn a ton 🍸! already a fan of the channel, Keep up the good work 🤟
Incredible, the best guide on UA-cam hands down. Subscribed!
i only saw this from you. this should be standard method. it is similar to how R works.
U can use the shiny extension for creating rapid webapps also
Dave : Great video. Thanks for sharing this great stuff.. Moving to VS Code for all DS work.. earlier I was using VS code and Jupyter notebook for different kind of work which wasn't efficient.
Thanks again !
excellent video, is there a dataframe viewer for vscode similar to r studio ??
Thanks for showing that setting which allows the interactive running of python-files! Very valuable.
That's awesome right!
Followed this video, ended up with a broken VS setup. could not see run button anymore. Nothing worked had to unistall
Hahahahaha, the opposite😂
First Dave I would like to thank you for your work you deserve much more views and subscribers, I'm moving to VS code I used to work with Jupyter(alone) and Spyder but VS code is much more convenient it was very helpful.
Thanks Robin, that really makes my day. And yea, VS Code is awesome for data science!
How to change the style and color of the cursor #VS Code
ua-cam.com/video/8r_iRuusTgE/v-deo.html
I have never seen the Jupyter Send before and I am trying it out and messing around / following along as I type this. I totally agree I think this will be a real game changer for me for testing and messing around and productivity in my coding journey. Thanks!!
Yea it's awesome! 😁
how did you generate your folder hierarchy for organizing things?
How to install pandas and numpy? Not helpful video =(
Learn to talk clearly. Create the video in native language and then have it translated, if required
Wow, that's brutal dude 😂
I’m totally new to this, so for most people watching this it may be a dumb question, but the video starts off with a ‘blank VS Code file’ already opened. Is this a text file? A jupyter notebook file? I tried watching passed that and using a text file, but it wouldn’t give me the option to "save as”, so I stopped watching the video at about 4 minutes in. Not a helpful video. :-(
Great tips! Yes the shft-enter and using VS Code with Jupiter is a great time saver.
how you are using pandas without virtual environment in vscode
This tutorial assumes that you're using Python for data science. And all the extensions you have provided are used not only in data science, but in Python in general. The title should've been "How to Set up VS Code for Python Development"
Thank you! You solved my problems!
fyi, you can easily convert any Jupyter notebook file (.ipynb) to a python file (.py) by using 'File' -> 'Download as' -> 'Python (.py)'. My blind friend also prefers working in the VScode python environment because his JAWS screen reader never reads the output section below a cell that was run.
lost from the first minue, where the folder of DS came from?
why use that type of mic for a tutorial video, it's uncomfortable to hear
Got a new one now ;)
I have installed vs code. But I can not change the environment within it to run ML libraries. It comes up with PS c:\.... instead of base PS c:\... so it does not even recognize conda, I have all that setup and run no problem from power shell but not from vs code. Does visual studio do everything that vs code does, in that case I do not need vs code.
Someone help me please with my vscode. Sometimes IntelliCode won't work on me suddenly, like in the middle of doing something and it won't suggest or autocomplete. What should I do? Thanks so much!
What an insightful video content! Really appreciate it. However, I have one question. I went followed all the steps discussed on the video but when I tried to run my own code it threw me an error of pandas *ModuleNotFoundError*. Shouldn't it had been installed at the same moment of the python extension?
Wow this was exactly the video I was looking for. The settings and extensions made the coding way more fun and it is nice to look at the data with the notebook. Thank You.
Similar benefit of both code wise execution and file wise execution can be enjoyed in spyder 5 as well, although did not compare the two for finding which one is better for the fitness tracker project.
You got another subscriber man!
Groeten uit Brabant ;)!
Thanks Laurens!
thanks for a great video. i didnt know about that interactive feature, it is awesome. 🙏🏻
You're welcome! It's a game changer for your productivity 🔥
I can't thank you enough brother!!! I'm learning Data Science and this video is a blessing for me
“Where’s #Dave, man?” ~ Tommy Chong
Thank you for this workflow! Clear explanation and I love the last part where you can run/dissect code chunk by chunk by sending python script to jupyter notebook interface. Game changer! Not going back to jupyter notebook now
hello, i have been having issures upgrading the python 2.7 that came with my mac. and so i have been unable to install, pip, pandas and matplotlib. i really need help please
Hi Dave, big fan here looks like your Twitter DMs are closed to verified users only. Can you confirm?
Excellent video. I was having a hard time migrating from PyCharm to VS Code. Your video cleared things up for me. Thanks.
Great video! Had no idea you could setup this type of environment in VS Code. I was actually bummed when starting to learn Python I feel like I had to start from scratch by using PyCharm. Definitely going this path now I know it can be done. Thanks!
where can I have the project layout please?
It is nice to see that vscode gets close to R in Rstudio in running code.
But, still, I see that we need to select for example function definition all. This wil be similar to run loops for example. I think this needs to improve I think this is still not effective so much. I am curious if this is a Python requirement to select a multiline statement to run.
great video. thank you!
Thanks for sharing such a powerful workflow on coding in python. Thats help me alot since for me as a beginner in data science.
Isn't there an option in Jupyter Notebook/Lab to export an .ipynb file as an executable .py script?
sheeesh, you sound like you are in my head
SO COOL!
Thank you for this! this is going to help me so much and i dont feel like a ediot lol
this is great thanks
great vide. exactly what i needed to also transition to vsc. and good sound quality from your mic!
Awesome video, thank!
This was awesome! As a beginner with Python I didn't realize this was possible!
amazing ! Thank you so muchhh
I have received great value from this video. Let me subscribe and ring the notification bell 😊
Awesome and straightforward introduction! Thank you very much!
Gold content! Thank you
very useful. Thanks