How to Set up VS Code for Data Science & AI

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 243

  • @daveebbelaar
    @daveebbelaar  Місяць тому +2

    👉🏻 2024 Update For this Video: ua-cam.com/video/mpk4Q5feWaw/v-deo.html

  • @realCleanK
    @realCleanK 8 місяців тому

    That interactive window piece is outstanding. THANK YOU! 🙏

  • @borisn.1346
    @borisn.1346 Рік тому

    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!

    • @daveebbelaar
      @daveebbelaar  Рік тому

      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 ;)

  • @tat-lyubch
    @tat-lyubch 11 місяців тому

    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.

  • @kyozecai
    @kyozecai 10 місяців тому

    wow i love this! def game changing for coding.

  • @CherifRahal
    @CherifRahal 7 місяців тому

    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 ?

  • @viewview6687
    @viewview6687 Рік тому +31

    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.

  • @PowerClip7
    @PowerClip7 7 місяців тому

    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?

  • @TVDramaHome
    @TVDramaHome 11 місяців тому

    Great to see your contents

  • @johann.cardenas
    @johann.cardenas Рік тому

    Great setup bro!

  • @ipxify
    @ipxify Рік тому

    should place your affiliate mic link here. nice sound man!

  • @kianmehreganian5980
    @kianmehreganian5980 Рік тому

    Really great tutorial :))))))))) thanks man

  • @bikram6581
    @bikram6581 7 місяців тому

    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.

  • @FrankUreno-o1j
    @FrankUreno-o1j 7 місяців тому

    thank you great video...is there a place i can download the demo default workspace folders to save time?

  • @User_ML907
    @User_ML907 9 місяців тому

    Subscribed.

  • @rokaskarabevicius
    @rokaskarabevicius Місяць тому

    You can also virtualise cells just like in a jupyter notebook file. Just use #%% cell magic.

  • @chearotha9688
    @chearotha9688 Рік тому

    good job brother

  • @adeolaolabode853
    @adeolaolabode853 11 місяців тому

    wish you were zooming your video

  • @DagStylez
    @DagStylez Рік тому +19

    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.

  • @ItercomViews
    @ItercomViews Рік тому +3

    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

  • @igortrifunovic1798
    @igortrifunovic1798 10 місяців тому +8

    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! 👏👏👏

  • @namtang
    @namtang 5 місяців тому +1

    The important thing that you missed is setting up the Python interpreter and virtual environment in VSCode.

  • @Aryan_Koundal
    @Aryan_Koundal 10 місяців тому +1

    One suggestion, for laptop users this video is too zoomed out and really hard to watch.

  • @Grafiyas
    @Grafiyas 8 місяців тому +1

    tnx it made my problem vanish in a second

  • @eugenmalatov5470
    @eugenmalatov5470 11 місяців тому +2

    Thanks, great content. I was struggling with the "send selection" option in the jupyter settings it has been renamed to "text editor: execute selection".

  • @daveebbelaar
    @daveebbelaar  Рік тому +23

    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

  • @InaAgapito
    @InaAgapito 4 місяці тому

    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.

  • @mf_faqih
    @mf_faqih 3 місяці тому

    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.

  • @KristianL-cf6bh
    @KristianL-cf6bh 4 місяці тому

    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.

  • @caballerofelipe00
    @caballerofelipe00 5 місяців тому

    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...)

  • @jorgesantanderm
    @jorgesantanderm Рік тому +3

    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.

  • @drudd75077
    @drudd75077 2 місяці тому

    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.

  • @mahmutyavuz4889
    @mahmutyavuz4889 6 місяців тому

    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

  • @riskwise99
    @riskwise99 2 місяці тому

    This guide is "top dollar"! Really useful, and very clear. This has helped me out significantly. Well done! +1sub

  • @DarkAcademist
    @DarkAcademist 11 місяців тому

    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

  • @toya9412
    @toya9412 6 місяців тому +2

    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

  • @Megabeboo
    @Megabeboo Рік тому +2

    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 😢

  • @qaboahene
    @qaboahene Рік тому +27

    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!

    • @daveebbelaar
      @daveebbelaar  Рік тому +6

      Thanks Adu! Yea, it's a real game changer to start working like this

  • @ShaneHaines-qe8nq
    @ShaneHaines-qe8nq 3 місяці тому

    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

  • @KalpeshPanchal
    @KalpeshPanchal 10 місяців тому +1

    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. 😃👍

  • @RolandoLopezNieto
    @RolandoLopezNieto 4 місяці тому +1

    HUGE thanks for this video and specially for the setup of the jupyter interactive window.

  • @GurpreetKaur-wu3bd
    @GurpreetKaur-wu3bd 2 місяці тому +1

    You made VS Code so much easier for me to understand and use for my analysis. Thanks, you're a lifesaver!

  • @lkhdd
    @lkhdd 10 місяців тому +1

    Thanks man! Do you consider making a V2 video on this?

  • @robertf57
    @robertf57 4 місяці тому

    Would have been nice to have a copy of your starting folder to make it easier to follow along.

  • @jiageng1997
    @jiageng1997 27 днів тому

    Can this example of debugging a python file plot images using matplotlib?

  • @danijelsusakovic9912
    @danijelsusakovic9912 11 місяців тому +2

    Just switched from Frontend Dev to Data Engineer, this was so useful, thank you a lot for it!

  • @DouglasCRPaes
    @DouglasCRPaes 2 місяці тому

    Awesome video
    Thank you so much for sharing your knowledge

  • @exshenanigan2333
    @exshenanigan2333 Рік тому +2

    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.

    • @patricioperez1985
      @patricioperez1985 Рік тому +2

      I second that. It makes it extra difficult to concentrate when using earphones.

  • @PeterPan-hs5tu
    @PeterPan-hs5tu Рік тому +1

    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
      @daveebbelaar  Рік тому

      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)

    • @PeterPan-hs5tu
      @PeterPan-hs5tu Рік тому

      @@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 🤟

  • @mo-ec6wu
    @mo-ec6wu Рік тому +3

    Incredible, the best guide on UA-cam hands down. Subscribed!

  • @notterboutuyer2781
    @notterboutuyer2781 8 місяців тому

    i only saw this from you. this should be standard method. it is similar to how R works.

  • @andyn6053
    @andyn6053 2 місяці тому

    U can use the shiny extension for creating rapid webapps also

  • @maulikda
    @maulikda Рік тому +1

    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 !

  • @rafidbinsadeque499
    @rafidbinsadeque499 7 місяців тому

    excellent video, is there a dataframe viewer for vscode similar to r studio ??

  • @ludwigstumpp
    @ludwigstumpp Рік тому +2

    Thanks for showing that setting which allows the interactive running of python-files! Very valuable.

  • @hurmetnoka9434
    @hurmetnoka9434 Рік тому

    Followed this video, ended up with a broken VS setup. could not see run button anymore. Nothing worked had to unistall

    • @geoTdz
      @geoTdz 4 місяці тому

      Hahahahaha, the opposite😂

  • @robinchriqui2407
    @robinchriqui2407 2 роки тому +2

    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.

    • @daveebbelaar
      @daveebbelaar  2 роки тому

      Thanks Robin, that really makes my day. And yea, VS Code is awesome for data science!

  • @lesssass4478
    @lesssass4478 Рік тому

    How to change the style and color of the cursor #VS Code
    ua-cam.com/video/8r_iRuusTgE/v-deo.html

  • @mavreyn
    @mavreyn Рік тому +1

    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!!

  • @danielhutson9426
    @danielhutson9426 7 місяців тому

    how did you generate your folder hierarchy for organizing things?

  • @vitalymuravev9911
    @vitalymuravev9911 11 місяців тому

    How to install pandas and numpy? Not helpful video =(

  • @1984ayan
    @1984ayan 3 місяці тому

    Learn to talk clearly. Create the video in native language and then have it translated, if required

  • @dennisaust5107
    @dennisaust5107 5 місяців тому

    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. :-(

  • @chadmace3355
    @chadmace3355 Рік тому +1

    Great tips! Yes the shft-enter and using VS Code with Jupiter is a great time saver.

  • @itsmohitshekhawat
    @itsmohitshekhawat Рік тому

    how you are using pandas without virtual environment in vscode

  • @yunus.ruzmetov
    @yunus.ruzmetov 6 місяців тому

    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"

  • @qaws2119
    @qaws2119 2 місяці тому

    Thank you! You solved my problems!

  • @KlausSzyska
    @KlausSzyska Рік тому

    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.

  • @Rajmanov
    @Rajmanov Рік тому

    lost from the first minue, where the folder of DS came from?

  • @madvier_8336
    @madvier_8336 10 місяців тому

    why use that type of mic for a tutorial video, it's uncomfortable to hear

  • @kevinehsani3358
    @kevinehsani3358 Рік тому

    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.

  • @romen5336
    @romen5336 Рік тому

    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!

  • @rabugentogamess
    @rabugentogamess 11 місяців тому

    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?

  • @arillashsaravanan9216
    @arillashsaravanan9216 Місяць тому

    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.

  • @duke_adi
    @duke_adi 8 місяців тому

    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.

  • @laurenshendrikx6363
    @laurenshendrikx6363 2 роки тому +1

    You got another subscriber man!
    Groeten uit Brabant ;)!

  • @fille.imgnry
    @fille.imgnry Рік тому +1

    thanks for a great video. i didnt know about that interactive feature, it is awesome. 🙏🏻

    • @daveebbelaar
      @daveebbelaar  Рік тому

      You're welcome! It's a game changer for your productivity 🔥

  • @IftesumZami
    @IftesumZami Місяць тому

    I can't thank you enough brother!!! I'm learning Data Science and this video is a blessing for me

  • @RobertHempazPhDTrichometry
    @RobertHempazPhDTrichometry Рік тому

    “Where’s #Dave, man?” ~ Tommy Chong

  • @sophial.4488
    @sophial.4488 8 місяців тому

    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

  • @charlesezenyelu7439
    @charlesezenyelu7439 Рік тому

    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

  • @GodfreyMubiru
    @GodfreyMubiru Рік тому

    Hi Dave, big fan here looks like your Twitter DMs are closed to verified users only. Can you confirm?

  • @victorl.mercado5838
    @victorl.mercado5838 8 місяців тому

    Excellent video. I was having a hard time migrating from PyCharm to VS Code. Your video cleared things up for me. Thanks.

  • @mikew2883
    @mikew2883 Рік тому +1

    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!

  • @lunaq3681
    @lunaq3681 10 місяців тому

    where can I have the project layout please?

  • @prefercihan641
    @prefercihan641 Рік тому

    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.

  • @meandyouandhimoverthere
    @meandyouandhimoverthere 2 місяці тому

    great video. thank you!

  • @TuyenPham-v9u
    @TuyenPham-v9u 9 місяців тому

    Thanks for sharing such a powerful workflow on coding in python. Thats help me alot since for me as a beginner in data science.

  • @bin4ry_d3struct0r
    @bin4ry_d3struct0r Рік тому

    Isn't there an option in Jupyter Notebook/Lab to export an .ipynb file as an executable .py script?

  • @sylap
    @sylap 6 місяців тому

    sheeesh, you sound like you are in my head

  • @MarkCarpenter0025
    @MarkCarpenter0025 11 місяців тому

    SO COOL!
    Thank you for this! this is going to help me so much and i dont feel like a ediot lol

  • @natnaelstesfagiorgis3077
    @natnaelstesfagiorgis3077 4 дні тому

    this is great thanks

  • @dirac9
    @dirac9 8 місяців тому

    great vide. exactly what i needed to also transition to vsc. and good sound quality from your mic!

  • @PLuna-zb4ol
    @PLuna-zb4ol 5 місяців тому

    Awesome video, thank!

  • @patrickgans2
    @patrickgans2 8 місяців тому

    This was awesome! As a beginner with Python I didn't realize this was possible!

  • @huyhq_official1601
    @huyhq_official1601 3 місяці тому

    amazing ! Thank you so muchhh

  • @etornamtsyawo6407
    @etornamtsyawo6407 Рік тому

    I have received great value from this video. Let me subscribe and ring the notification bell 😊

  • @popobleistift5000
    @popobleistift5000 5 місяців тому

    Awesome and straightforward introduction! Thank you very much!

  • @andyr8833
    @andyr8833 2 місяці тому

    Gold content! Thank you

  • @ujjwalchetan4907
    @ujjwalchetan4907 2 місяці тому

    very useful. Thanks