Jupyter Notebook Tutorial

Never miss a tutorial! Subscribe to the Project Data Science channel: bit.ly/3yTMdQV
Go from zero to hero with our Data Science Specialization: courses.projectdatascience.co....
Or learn about all of data science in one blog post! www.projectdatascience.com/wh...
...
Jupyter notebooks have become more and more popular within data science. They're very powerful, and will help you build your data science toolkit. This tutorial shows you how to use them!
Here are some of the things we'll cover:
- Basic Jupyter notebook functionality
- Jupyter keyboard shortcuts (I'm all about the keyboard shortcuts!)
- Some intermediate topics, like the Python kernel and the notebook terminal
- And, some of the powerful extensions and additional libraries that you can use to super-charge your Jupyter notebook setup.
If you learn something, throw us a subscribe, like, comment or share!
Happy learning!
---
00:00 Introduction
01:35 Jupyter notebook example
04:11 Installing Python and Jupyter notebooks
09:23 Launching Jupyter notebooks
11:08 Basic notebook functionality
20:58 The kernel, and variables
28:38 Other notebook functionality
34:45 The menu
35:52 Jupyter notebook keyboard shortcuts
36:57 Load and display data using pandas
40:33 Using terminal commands inside a Jupyter notebook
42:30 Jupyter notebook magic commands
45:07 Other features outside of the notebooks
46:41 Shutting down Jupyter notebooks
48:02 Jupyter notebook extensions and other libraries
52:47 Conclusion, and thank you
---
Additional Project Data Science Resources:
- projectdatascience.com/ (The official Project Data Science site!)
- • Pandas Mega-Tutorial -... (Pandas Mega-Tutorial - everything you need to know when you're first learning pandas, one of the main Python libraries for data science)
- • Matplotlib Mega-Tutori... (Matplotlib Mega-Tutorial - data visualization in Python!)
- • Intro to Machine Learn... (Beginner's introduction to machine learning with Python.)
- • Beginner's Introductio... (Beginner's introduction to neural networks in Python.)
---
Additional Resources:
- github.com/jupyter/jupyter/wi... (A gallery of interesting Jupyter Notebooks.)
- docs.conda.io/en/latest/minic... (Miniconda -- this is how I recommend installing Python and conda. We use conda for virtual environments.)
- jupyter.org/ (The main Project Jupyter homepage.)
- nbconvert.readthedocs.io/en/l... (nbconvert, for converting your notebooks to different formats.)
- nbformat.readthedocs.io/en/la... (nbformat, for programmatically creating, reading, and modifying Jupyter notebooks)
- papermill.readthedocs.io/en/l... (Papermill, for parameterizing and executing notebooks.)
- nbviewer.jupyter.org/ (nbviewer, a way to share Jupyter notebooks via the browser)
- github.com/ipython-contrib/ju... (Jupyter notebook extensions)

Пікірлер: 60

  • @kellykessler7793
    @kellykessler77932 жыл бұрын

    As a web dev suddenly looking to automate a data project at work in Jupyter Notebooks, this tutorial was accessible, on target and with no filler. Great work!

  • @albertchidi3059
    @albertchidi30594 ай бұрын

    i found the tutorial strait to the point. I struggled a lot trying to get a dark theme for my jupyter notebook which came with a lot issues and didn't eventually work. Your tutorial ultimately brought the breakthrough I needed.

  • @noblesingh9466
    @noblesingh94663 жыл бұрын

    Thanks for the Tutorial, i knew nothing about Juypter before watching this and now everything is clear !

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Marvelous! I'm glad you were able to get up to speed with Jupyter notebooks. They're extremely useful.

  • @saf210zla
    @saf210zla3 жыл бұрын

    I like the way you explain, simple short, clutter free. Thanks

  • @michaelmcguinness
    @michaelmcguinness2 жыл бұрын

    Great tutorial. Nicely paced and very clear.

  • @georgesargent1369
    @georgesargent13693 жыл бұрын

    Very nice. I'm a novice at Python and just discovered Jupyter Notebooks and this was extremely useful.

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Jupyter notebooks are a great way to start learning some Python and data science! At some point it's useful to migrate code into standalone Python scripts (which is usually how Python applications are deployed), but Jupyter notebooks are being used more and more these days because of how helpful they are. Happy learning!

  • @nimaasadi8131
    @nimaasadi81313 жыл бұрын

    This was a great tutorial. thanks alot for sharing. It helped me alot working my projects out

  • @leythecg
    @leythecg Жыл бұрын

    A really great tutorial! Many thanks!

  • @sirsquirrel0
    @sirsquirrel03 жыл бұрын

    Brilliant video, now I know what everyone is going on about when they talk about ‘Jupyter Notebook’! Kudos!

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Great! Yeah, it's a very powerful tool, but it's actually pretty easy to start using it. :)

  • @yolofischer4575
    @yolofischer45752 жыл бұрын

    thank you so much! I've just begun to learn machine learning this semester :)

  • @dpratte
    @dpratte Жыл бұрын

    Thank you sir! Well done.

  • @robertscott5535
    @robertscott55353 жыл бұрын

    Sub'ed! Great overview! Thanks!

  • @Good-and-Geeky
    @Good-and-Geeky Жыл бұрын

    Excellent tutorial. Lots of handy information.

  • @oskarwitha_k8258
    @oskarwitha_k82583 жыл бұрын

    Very helpful and informative tutorial, thank you so much!!

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're very welcome!

  • @aquatic8075
    @aquatic80753 жыл бұрын

    thank you for your great tutorial, I didn't understand how my teacher does all these cool stuff in class with Jupyter Notebook. You saved my life.

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're very welcome! Is there anything else about Jupyter notebooks that you'd like to learn? (We're putting together more Jupyter notebooks tutorials right now!)

  • @JustinMatthewNewman
    @JustinMatthewNewman3 жыл бұрын

    Thank you sir! Great tutorial, I wish you a good day and much respect.

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Thanks, you too!

  • @leonnunes2077
    @leonnunes20773 жыл бұрын

    Really good and valuable Tutorial, thanks a lot!

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're very welcome! Let me know if there's any topic you'd like to see.

  • @brandonhunter2074
    @brandonhunter20743 жыл бұрын

    been avoiding these for years but finally had a use case where I needed to learn them. great tutorial.

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Glad the tutorial was useful! I use Jupyter Notebooks literally every single day at work. They're definitely useful in the data science / data analysis / data engineering space.

  • @_IntoTheUnknown_25
    @_IntoTheUnknown_253 жыл бұрын

    Really good intro to jupyter notebook. Subscribed :) . Looking forward to new cool videos :) .

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Wonderful, thanks for the sub!

  • @metalmasterlp
    @metalmasterlp3 жыл бұрын

    finally a good explanation, thanks

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're very welcome! Sorry you had to slog through many bad explanations.

  • @hnd13
    @hnd133 жыл бұрын

    This is awesome thank you

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're so welcome!

  • @frankliu2611
    @frankliu26113 жыл бұрын

    Thank you!

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're welcome!

  • @nzearimo
    @nzearimo11 ай бұрын

    "x" key I thought is for cut, then "v" for paste, Del is "dd" (double d)

  • @lachupacabra6623
    @lachupacabra66233 жыл бұрын

    Great content

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Thank you! Happy learning!

  • @watchtime5477
    @watchtime54773 жыл бұрын

    I loved it, Thanks. I subscribed you.

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    You're welcome, and thanks for the sub!

  • @johanverkerk3260
    @johanverkerk32602 жыл бұрын

    Hele goede tutorial, ik ben bijna 70 jaar oud en begrijp ook hoe het moet werken, ben ook een echte beginneling en vind het persoonlijk erg veel om te onthouden. Ik zou graag een programma maken voor de lotto maar weet geen eens hoe ik zou moeten beginnen en welke hulpmiddelen ik zou moeten gebruiken. Is het mogelijk om daar een video over te maken of is dat met Python niet mogelijk? Heb ook Jupyter Notebook geïnstalleerd en het werkt goed als ik de code overneem van internet. Ik volg ook je verdere tutorials met veel plezier. Veel succes.

  • @eyeojo
    @eyeojo3 жыл бұрын

    That was money, thank you. Funny too (at times)!

  • @rayibrahim4267

    @rayibrahim4267

    3 жыл бұрын

    a trick: you can watch series at kaldrostream. Me and my gf have been using it for watching a lot of movies lately.

  • @majorjason9640

    @majorjason9640

    3 жыл бұрын

    @Ray Ibrahim Yup, I've been using kaldroStream for years myself :)

  • @zaydjulian4539

    @zaydjulian4539

    3 жыл бұрын

    @Ray Ibrahim Yup, been using kaldrostream for since november myself :D

  • @aaronwoodhead8771
    @aaronwoodhead87712 жыл бұрын

    hi, im really stuck on the part where you have to upload the heart.csv as i cant type in my miniconda to do the same thing as you, also my directry when you type LS comes up with everything in the folder, was wondering if you could help?

  • @thesosasoundproductions5033
    @thesosasoundproductions503311 ай бұрын

    Hey bud, thanks for the video it's great. I have a question about my Jupyter notebook. When I start coding, I see your notebook changes colors. like for example when you type import its green and when you type print its red. Mine always stays white. what am I doing wrong? I have downloaded the latest version, but it doesn't change colors at all. Also, I see you notebook is white. Mine comes automatically in black. Could this be why? I just want to see the changes, so I don't get confused. Could you give me a suggestion on what to do? Thank you in advance

  • @shaniamitra9653
    @shaniamitra96533 жыл бұрын

    Hi! Thank you so much for this tutorial. Just one question, when I try to import pandas, it keeps saying module not found, despite me installing it in the virtualenv. Any suggestions?

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Hi Shania! It could be a couple things. First, make sure you're using your virtualenv when you launch Jupyter notebooks. One way to check is to run "which python" and "which jupyter" before launching Jupyter notebooks, and make sure that the path that gets printed out is pointing to your virtual environment. Another potential solution is to make sure you're choosing the right environment when you create the notebook (from inside the Jupyter notebook dashboard). Finally, are you using conda? If not, then maybe give conda a try! I hope one of these works for you.

  • @ameenpondy
    @ameenpondy2 жыл бұрын

    I'm using Windows10 OS. Wanted to use yfinance but getting "ModuleNotFoundError: No module named 'yfinance' " even after doing pip install yfinance. It's installed correctly but still module is not found yet. Can someone help me please ?

  • @kayax01
    @kayax013 жыл бұрын

    Why is it better to use a jupyter notebook? What was used before that?

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Jupyter notebooks are a way to show (a) code, AND (b) documention, AND (c) graphs all in the same place, and that allows you to run pieces of an analysis in isolation. Previously, analysis would be done using a Python script or a set of Python scripts. These scripts would output the analysis in another location (like PNG or JPG graphics, or TXT files), and you might have documentation in a third location (like a markdown file or LaTeX file)-so you have three or five or ten files instead of just one notebook. So it's really a way of allowing data scientists to easily conduct repeatable analysis in a single location, and then for them to share that analysis with others easily. Is that helpful?

  • @jehushaphat
    @jehushaphat3 жыл бұрын

    So I did a SkillsNetworkLabs Python course and wanted to upload my jupyter notebooks to my github repository. Without having JN installed on my computer is it possible to download it to my computer and then upload it to github?

  • @ProjectDataScience

    @ProjectDataScience

    3 жыл бұрын

    Absolutely! You don't need Jupyter Notebooks installed to download/upload the files. You only need Juypyter installed if you want to run the notebooks on your computer. Here's what you could do: 1. Download the notebooks. 2. Add them to an existing GitHub repo on your computer, or create a new GitHub repo for them. 3. Add the notebooks (git add .), then push them to GitHub. Does that help?

  • @jehushaphat

    @jehushaphat

    3 жыл бұрын

    @@ProjectDataScience Thank you for the feedback! I'll try it and give you the update.

  • @andrewsooter3745
    @andrewsooter37452 жыл бұрын

    I can open the jupyter notebook in the base env (python version 3.10.0) but when I create another env with the python version 2.7.18 and install jupyter notebook in there it won't open and says syntax error File "/Users/Andrew/opt/anaconda3/envs/6.00sc/bin/jupyter-notebook", line 7, in from notebook.notebookapp import main File "/Users/Andrew/opt/anaconda3/envs/6.00sc/lib/python2.7/site-packages/notebook/__init__.py", line 25, in from .nbextensions import install_nbextension File "/Users/Andrew/opt/anaconda3/envs/6.00sc/lib/python2.7/site-packages/notebook/nbextensions.py", line 31, in from .config_manager import BaseJSONConfigManager File "/Users/Andrew/opt/anaconda3/envs/6.00sc/lib/python2.7/site-packages/notebook/config_manager.py", line 15, in from traitlets.config import LoggingConfigurable File "/Users/Andrew/opt/anaconda3/envs/6.00sc/lib/python2.7/site-packages/traitlets/config/__init__.py", line 6, in from .application import * File "/Users/Andrew/opt/anaconda3/envs/6.00sc/lib/python2.7/site-packages/traitlets/config/application.py", line 17, in from decorator import decorator File "/Users/Andrew/opt/anaconda3/envs/6.00sc/lib/python2.7/site-packages/decorator.py", line 162 print('Error in generated code:', file=sys.stderr) ^ SyntaxError: invalid syntax

  • @nightletters
    @nightletters3 жыл бұрын

    Handy dandy!

  • @julians.2597
    @julians.25972 жыл бұрын

    Note that this is now fully outdated. Notebooks are greater than ever, but Jupyter's new interface for them, Jupyter Lab, is released and has had more than enough time to mature. There is now no reason to use jupyter notebook over jupyter lab, and many vice-versa.

  • @mohammedaroz4285
    @mohammedaroz42854 жыл бұрын

    Quite

  • @quietmind2502
    @quietmind25029 ай бұрын

    why not goodbye world, right thats kind of edgy! what a funny guy😆

  • @c.s.842
    @c.s.842 Жыл бұрын

    A tutorial to avoid. Look for something better