Using VS Code with Python for Data Science / Data Analysis - P.5

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.ค. 2024
  • Python Fundamentals Course (DataCamp) 👉🏼 lukeb.co/PythonBasicsDataCamp
    Data Analyst Track w/ Python (DataCamp) 👉🏼 lukeb.co/PythonAnalystDataCamp
    (My recommended courses that I took to learn Python!)
    For this video we cover how data analysts and data scientists set up and use Visual Studio Code (VS Code) with Python. For this we cover the basics of controls and other important features you should be using during development. Finally, we wrap things up with covering how to use Jupyter Notebooks inside VS Code.
    My playlist for starting Python 👉🏼 • Python Setup
    Download Python w/ Anaconda here 👉🏼 www.anaconda.com/products/ind...
    Download VS Code here 👉🏼 code.visualstudio.com/download
    Certificates & Courses
    ==================================
    Coursera Courses:
    📜 Google Data Analytics Certificate (START HERE) 👉🏼 lukeb.co/GoogleCert
    💿 SQL for Data Science 👉🏼 lukeb.co/SQLdataScience
    🧾 Excel Skills for Business 👉🏼 lukeb.co/ExcelBusinessAnalyst
    🐍 Python for Everybody 👉🏼 lukeb.co/PythonForEverybody
    📊 Data Visualization with Tableau 👉🏼 lukeb.co/Tableau_UCDavis
    🏴‍☠️ Data Science: Foundations using R 👉🏼 lukeb.co/RforDataScienceJH
    Coursera Plus Subscription (7-day free trial) 👉🏼 lukeb.co/CourseraPlus
    DataCamp Courses:
    🐍 Python 👉🏼 lukeb.co/PythonBasicsDataCamp
    📈 Power BI 👉🏼 lukeb.co/PowerBIDataCamp
    📊 Tableau 👉🏼 lukeb.co/TableauDataCamp
    🏴‍☠️ R 👉🏼 lukeb.co/RDataCamp
    🐍 Data Analyst w/ Python 👉🏼 lukeb.co/PythonAnalystDataCamp
    DataCamp Subscription (Monthly $25USD) 👉🏼 lukeb.co/DataCampSub
    👨🏼‍🏫 All courses 👉🏼 kit.co/lukebarousse/data-anal...
    My Tech for Data Science
    (Includes Amazon Affiliate Links)
    ==================================
    💻 Dell New XPS 13 (PC of choice) 👉🏼 geni.us/DellNewXPS13
    💻 Dell New XPS 15 👉🏼 geni.us/DellNewXPS15
    👨🏼‍💻 M1 Macbook Air 8GB (Mac of choice) 👉🏼 geni.us/M1macAir8GB
    👨🏼‍💻 M1 Macbook Pro 8GB 👉🏼 geni.us/M1macPro8GB
    🔌 Must-have Mac dock 👉🏼 geni.us/CalDigitTS3
    🖥 M1 Multiple monitor adapter 👉🏼 geni.us/DisplayLinkAdapter
    ⌨️ Mac Keyboard 👉🏼 geni.us/MacMagicKeyboard
    🖱 Mac Mouse 👉🏼 geni.us/MacMagicMouse
    💾 Small (1TB) External HD 👉🏼 geni.us/WDelements1TB
    💾 Large (14TB) External HD 👉🏼 geni.us/WDelements14TB
    🏢 Standing Desk 👉🏼 geni.us/StandingDeskFezibo
    📗 Data Science Must Read 👉🏼 geni.us/StorytellingWithData
    📸 Camera of Choice 👉🏼 geni.us/SonyA6600body
    For computers, I recommend checking the manufacturer's website (i.e., dell.com) for deals/rebates
    Social Media / Contact Me
    ======================
    🙋🏼‍♂️Website: www.lukebarousse.com/
    🌄 Instagram: / lukebarousse
    ⏰ TikTok: / lukebarousse
    📘 Facebook: / datavizbyluke
    📥 Business Inquiries: luke@lukebarousse.com
    As an Amazon Associate, I earn a small commission from qualifying purchases on the Amazon links above. It costs you nothing but helps me in keeping the content coming.
    00:00 Intro
    01:21 Starting a new project
    06:10 Running Python
    06:44 Linting w/ Pylint
    09:57 Formatting (IAW pep8)
    14:33 Enabling extensions
    15:57 Zoom in/out
    16:23 Search / find & replace
    17:14 Source control
    18:49 Debugging
    22:22 Launching Jupyter Notebooks
    23:21 Running code in Jupyter Notebook
    26:40 Conclusion & Recap
    #vscode #pythontutorial #datavisualization
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 85

  • @andy97211
    @andy97211 ปีที่แล้ว +11

    Hi Luke, I recently completed a 6 month data analytics bootcamp and have since been trying to incorporate what I've learned into my work. However, I've been struggling with foundational concepts such as setting up a proper working environment. I just came across your python setup series and it has been super helpful and was exactly what I was looking for. I look forward to watching more of your videos!

  • @candostyavuz8360
    @candostyavuz8360 3 ปีที่แล้ว +9

    As an FPGA engineer, I've been enjoying and learning a lot from your content lately. You make data science fun and doable. I really hope to see this channel reaches greater number of audience. Cheers!

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      Aw my dude, thanks so much for leaving this comment! It really helps motivate me to put out more content. I'm more happy that you're getting value out of my tutorials, stay tuned for this channels journey!

  • @pancakez2181
    @pancakez2181 ปีที่แล้ว +1

    This was the series I needed to get started with Python 🙌

  • @brianyi14
    @brianyi14 3 ปีที่แล้ว +4

    great series, really helped me understand how to use virtual environments with anaconda and how to use jupyter notebooks within VSCode. Loved the visuals as well

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      So glad you got use out of this Brian! Thanks for watching!

  • @thanhninh2863
    @thanhninh2863 3 หลายเดือนก่อน

    Thank you so much, i start leanr DA and try to set up the vscode for my studying journey, this series is a killer. love

  • @Prasadavajjhala
    @Prasadavajjhala ปีที่แล้ว +2

    Thank you Luke, for the series. This has cleared up so much confusion with virtual environments

  • @aissamboudra7995
    @aissamboudra7995 ปีที่แล้ว +1

    hi luke, many thanks for this useful series, it's my first steps in python word, i have a lot of data in my daily jobs and hope use python to make daily task more easier and go further in my analysis

  •  3 ปีที่แล้ว +1

    This video was really helpful, your explanations were clear and easy to follow. Thank you very much!

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Victor, thank you so much for this, I appreciate the kind words!!

  • @davidmiller-td1sl
    @davidmiller-td1sl 3 ปีที่แล้ว +2

    You made a difficult concept so much easier, thanks!

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Heck yeah! Thanks for the kind words Dave! #EatBig #CodeBigger

  • @ahmedabdelfatah9340
    @ahmedabdelfatah9340 ปีที่แล้ว

    I really enjoyed this video series, your efforts are much appreciated.

    • @LukeBarousse
      @LukeBarousse  ปีที่แล้ว +1

      Thank you very much, Ahmed!

  • @modoulaminceesay9211
    @modoulaminceesay9211 ปีที่แล้ว

    Thanks this helped me set up my macbook for machine learning since i needed python. Your videos are very helpful

    • @LukeBarousse
      @LukeBarousse  ปีที่แล้ว

      Glad I could help Modoulamin!

  • @PabloDini
    @PabloDini 2 ปีที่แล้ว +1

    this video is gold!! Thank you!!!

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +1

      Heck yeah! Thanks for this Pablo!

  • @alexpietzak33
    @alexpietzak33 3 ปีที่แล้ว +1

    Hello friend! I’m student of data science, and use python and R language.
    I’m from Brazil and followed in your channel, and in your personal site too.
    Congrats for your explanation! The better was R versus Python!

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      Ha! Glad you liked my recent skit on R vs Python! Thanks for following along!

  • @adityaariewijaya9284
    @adityaariewijaya9284 3 ปีที่แล้ว

    This is amazing. I dont use VSCode before, the adds on is kinda awesome.

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Thanks Aditya!! Appreciate it. For being a free software its crazy what you get included with it (and the add-ons).

  • @pkprasads
    @pkprasads ปีที่แล้ว

    Thank you so much. Very informative

  • @alexhristache
    @alexhristache 3 ปีที่แล้ว +1

    Really useful, thank you!

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      Thanks, Alex! Appreciate the kind word. 🤙🏼

  • @laxmanaryal5958
    @laxmanaryal5958 3 ปีที่แล้ว

    Thanks luke it was wonderful

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Awe thanks my dude!! Appreciate it!

  • @shanygnedowney
    @shanygnedowney 2 ปีที่แล้ว

    thanks for the information, really helpful

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +1

      Heck yeah! So glad you found it informative!!

  • @Digital-Light
    @Digital-Light ปีที่แล้ว

    thank you !

  • @sary6256
    @sary6256 2 ปีที่แล้ว

    Thanks very useful video!

  • @mutukukyenze3726
    @mutukukyenze3726 3 ปีที่แล้ว

    very nice tutorial Thanks

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      Thanks Mutuku! I appreciate the kind words my friend!

  • @AJ-et3vf
    @AJ-et3vf ปีที่แล้ว

    Great video! Thank you!

  • @laugedyret
    @laugedyret 2 ปีที่แล้ว

    Cool - thanks!

  • @danquixote6072
    @danquixote6072 2 ปีที่แล้ว +3

    All I can say is thank God for these series of videos. But I honestly can't believe that well into the 21st century, you can't just open the program and start coding. It's like having to walk 5 miles to draw water from a well to take home just to make a cup of tea. Anyway, really appreciate the content, many thanks.

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +2

      I laughed reading this! 🤣 SO TRUE! Why do we make it so complex to get up and running with coding! But so glad you found my video useful!!

  • @siarheizakharau4846
    @siarheizakharau4846 2 ปีที่แล้ว

    Hi, Luke! Great video! Thank you!
    What language server do you use? I have default server(Pylance) and in the case of error I get two error messages: one by Pylance and the second by Pylint. How to use only Pylint?
    Also, using Pylance Ianguage server I get autosuggestions, bit have no snippets, so I need tot type everything by hand. How can I fix it?

  • @bondxxx7
    @bondxxx7 3 ปีที่แล้ว

    Amazing video. Thanks for that. Everything works as you explained except the intellisense in jupyter notebook that doesn't seem to work for me. I am using VSCode version 1.54.3.

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Really the intellisense isn't working? I wonder if you have to reset the VS code for it to work? I don't remember having this issue.

  • @nicolasaladino8729
    @nicolasaladino8729 3 ปีที่แล้ว +2

    Congratulations on the channel! I have a question, how do you set up the terminal like yours, when you start typing it autocompletes and suggests you how to finish the script, in light gray?
    Currently it only works for me by pressing e tab, but not always.
    I have a mac. Thanks!

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      I use zsh as my shell, so I installed autosuggestion. Here is the link to the install page: github.com/zsh-users/zsh-autosuggestions

    • @rodrigodemarchi1184
      @rodrigodemarchi1184 2 ปีที่แล้ว

      @@LukeBarousse How do we install it? I'm super lost

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +1

      @@rodrigodemarchi1184 I don't have a video on installing this unfortunately... but I think there a lot of good videos on TH-cam that can help you

  • @oldsmar1983
    @oldsmar1983 3 ปีที่แล้ว +2

    If you still cannot get Pylint to work after installing and reloading your environment, add the code below to the your user settings.json file...
    ctrl + shift + p
    Select settings.json
    "python.linting.enabled": true,
    "python.linting.pylintEnabled": true,
    "python.linting.pylintUseMinimalCheckers": false,

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Awesome! Thanks for sharing this Colt!!!

  • @matiassanchez3539
    @matiassanchez3539 ปีที่แล้ว

    Hi Luke thanks a lot. I'm wonder how can I do to put everything (the conda enviroment with the packages) into my project folder. I mean, if I want to send my project to someone to execute it in his computer ¿what is the best way to do this? thank you!

  • @basrikomaruf6221
    @basrikomaruf6221 2 ปีที่แล้ว +1

    hello luke nice to know you, your video is very good for me who is newbie in statistics.
    I'd like to ask if you don't use tools like SPSS, Minitab, SAS, or R to process the data as a data analyst. Thank you

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว

      Yeah I'm a fan of SAS and R

  • @Not_Lactoselntolerant
    @Not_Lactoselntolerant ปีที่แล้ว

    Hi Luke, thanks for these awesome series. One thing I don't understand though, where is the best place to keep the created virtual environment files/ folder (containing packages and libraries) in relation to your project folder or it doesn't really matter? From your example the virtual environment stuffs were created and kept outside projectexample folder, no? Or perhaps I don't need to worry about this at all? A bit confusing when you start playing with venv, virtualenv, conda and they all create their virtual environment folder all over the places :)

    • @LukeBarousse
      @LukeBarousse  ปีที่แล้ว +1

      Anaconda stores them in their own directory or folder... You don't choose, so it's not something I really have to worry about.

  • @zakeyaalsada616
    @zakeyaalsada616 3 ปีที่แล้ว

    Hi, Thank you for the video and your efforts. I am new to python and VS code... I didn't quiet understand the virtual environment and conda part. Is there a video you recommend me watching? thanks

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      Hi Zakeya, Thanks so much for the kind words!! Congrats on starting this journey. If you want to learn more about venv and conda check out this video: th-cam.com/video/qI0uJsLweoM/w-d-xo.html
      Additionally, this video is part of a serious that may be beneficial for you to check out: th-cam.com/play/PL_CkpxkuPiT9udgCeqZpS4HKF6uIzra3r.html

  • @M_le-n4r
    @M_le-n4r หลายเดือนก่อน

    In the jupyter notebook, how do you get the cell highlighted with the thick blue line ? Is this also an extension?

  • @tanialoza4285
    @tanialoza4285 2 ปีที่แล้ว

    Hi Luke! Can we use the same process you explained on the video to create a virtual environment for a jupyter notebook?

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +1

      Yes and you can run jupyter notebooks in VS code... it's actually my preferred method

  • @manujjoshi1682
    @manujjoshi1682 3 ปีที่แล้ว

    The video has been really helpful. Your efforts are much appreciated.
    Question: When I try to export the jupyter notebook to pdf in vs code, it always shows an error "Export failed, please check jupyter output panel for further details". I am new to programming and data science & I can't figure out the solution to this problem. Can you help?

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      I'm not to sure on this one. I highly recommend googling your error as this usually results in some forums that discuss the area. Doing a quick search I found this issue report that may be related: github.com/microsoft/vscode-jupyter/issues/710

  • @Z3DZ3R0
    @Z3DZ3R0 2 ปีที่แล้ว

    Hi Luke! I am used to work with R and markdown which has similar code cells and the output below them, however, in R+markdown I can run just the line where my cursor is on even if it is in a code cell using CMD + Enter, instead of the whole code cell. Is there some way I can do that in Jupyter notebooks? I searched a bit and someone suggested I should install a debugger since that is what it is called but I still have no luck in doing this.
    Interesting videos, keep up the good work!

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +1

      I don't think that this is possible in Jupyter notebooks... although I may be wrong. I do remember this being in the R functionality, but after switching over to Python, I've never found a need to only run a single line (vice the cell)

    • @Z3DZ3R0
      @Z3DZ3R0 2 ปีที่แล้ว

      @@LukeBarousse Thank you for answering!

  • @unintension
    @unintension 2 ปีที่แล้ว

    Why do you suggest creating a new environment for each new project? Does that mean that you have to install special packages again in that new env?

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว +2

      Correct. different projects will have different package needs... you will eventually run into package conflicts if you run all projects from one envirornment as over time packages update and change

  • @fvc1612
    @fvc1612 ปีที่แล้ว

    I have one question. I can run Jupyter Notebooks in VSCode but the layout is too different. How can I get that one?

  • @lilianavictoriaalvaradogar6054
    @lilianavictoriaalvaradogar6054 2 ปีที่แล้ว

    Question - I am inputting in the terminal 'conda install pandas' and the command runs through and says all packages are installed. Yet, when I run the code in jupyter, I still get "no module named panas"

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว

      It sounds like you are not in the right environment; mainly the terminal environment and the jupyter notebook environment are not the same

  • @joshuabretana
    @joshuabretana ปีที่แล้ว

    when i get really good at python, ill get a set of shirts and pants ALL of the same color and style!

  • @user-qc1ex7hh2c
    @user-qc1ex7hh2c ปีที่แล้ว

    We need make a video about making graphs and pie chart😂using visual code with python

  • @pantherking6857
    @pantherking6857 3 ปีที่แล้ว

    I have a question, when I use jupyter the syntax colours are like dark blue for keywords and operators, dark red for strings,etc. Which is undreadable in dark mode, how can I fix that.

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      I'm actually not to sure on this. It's most likely able to change but would have to google it.

    • @pantherking6857
      @pantherking6857 3 ปีที่แล้ว

      @@LukeBarousse alright thanks, just found out the reason was because Linux version of the app doesn't automatically adjust the syntax colours for the themes

  • @SuperMihalaras
    @SuperMihalaras 3 ปีที่แล้ว

    When i import pandas i always get an error that the module is not recognized.. I want to note that i already installed anaconda and the pandas module but i get the same error. I would appreciate a lot some help

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว +1

      You need to ensure that your jupyter notebook (or python file) is operating in the same anaconda environment that you installed pandas within. If you're not in this environment it will tell you that the module isn't available.

  • @PaxSanguina
    @PaxSanguina 3 ปีที่แล้ว

    15:32 is that control + option + N on Mac?

    • @LukeBarousse
      @LukeBarousse  3 ปีที่แล้ว

      Yeah! That what I ran this on.

  • @GG-yk2nc
    @GG-yk2nc 2 ปีที่แล้ว

    what about Spyder?

    • @LukeBarousse
      @LukeBarousse  2 ปีที่แล้ว

      I think Spyder is a great IDE, but I perfer VS Code as I routinely work with other languages and VS code seems better for this

  • @yevgeniybondar7509
    @yevgeniybondar7509 2 ปีที่แล้ว

    LIKE

  • @AlexBerkk
    @AlexBerkk 3 ปีที่แล้ว

    the guy kinda looks like a fraternity version of Donald Trump