5 Jupyter Notebook Tips & Tricks to Improve your Data Science Workflow!

preview_player
Показать описание

In this video we walk through some of my favorite tips & tricks for doing data science with Jupyter Notebooks. Many of these tips have helped me become more efficient writing Python code for my data science projects.

Topics covered:
- Running bash commands from a jupyter notebook. You can use “!” in a code cell to run any terminal command that you want. You can also try using the “%” to execute magic lines. This includes some of the same bash commands that you might gravitate to as well as some Jupyter specific commands.
- The most useful shortcuts that I think you should know. Ctrl+enter to run a cell, shift+enter to run a cell and skip to the next, B to create new cells below, M to turn a cell to markdown, and several more. We will also look at find & replace in this section.
- Changing pandas default display settings (number of rows to display, columns, decimal points, etc.)
- Turning on OS alerts for running Jupyter Notebook cells. This is particularly useful if you have a long machine learning model training job going on and you want to know exactly when it finishes so that you can play around with the results.
- Creating slideshows within a Jupyter notebook!

Bonus topic:
- Changing your Jupyter Notebook theme! Monokai is a good one to use if you like dark-themes

Source code:

If you have any questions about these tips & tricks, or if you have additional recommendations, please let me know in the comments!

I hope you enjoyed this video! Please subscribe & give it a like if you did.

Resources:

-------------------------
Follow me on social media!

-------------------------
Song at the end
Creative Commons — Attribution 3.0 Unported — CC BY 3.0

-------------------------

Practice your Python Pandas data science skills with problems on StrataScratch!

Join the Python Army to get access to perks!

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

-------------------------
Video timeline!
0:00 - Introduction & video overview
2:11 - 1. Running terminal commands such as “pip” directly in a notebook
5:17 - Magic lines in Jupyter
6:11- 2. Shortcuts that you need to know for Jupyter!
9:25 - 3. Changing default Pandas options to improve results display
14:00 - 4. Setting up notifications for when a cell finishes execution
18:08 - 5. Creating slideshows from a IPython notebook!
23:00 - Conclusion (and link to bonus tip!)
Рекомендации по теме
Комментарии
Автор

Awesome insights ! loved the tricks, was unaware of slideshow. Many thanks @keith for sharing.

prasenjityk
Автор

Excellent bro, really appreciate the way you just mentioned these points and tricks to use the JNB more efficiently...

jawad
Автор

wow the find and replace method is pretty useful. Thanks a lot Keith. Really appreciate it.

manyes
Автор

Another insightful video👍! I think for Bash commands there is also the Jupyter kernel for Bash.

BillyT
Автор

thank you @Keith for amazing information

sunny
Автор

looking good! thanks for another tutorial keep going

parzynamea
Автор

One of the feature I recently came across is df.style
This function display all columns and rows whenever there is cutoff on rows & columns.
Hope you find it useful

rajvaghasia
Автор

Hi Keith. Thanks for making this video.❤ Can you please make a video on "Analyzing data with the help of SQL".❤

abdullahjaffrey
Автор

Tum bahot mast kaam karta he . Thank you really so much for this !!🤩🤩

khushbunikhal
Автор

I know I am late, but how do you deal with drop downs while scraping especially on a page that some of the drop downs have been toggled automatically, and what if the drop downs are in different areas on every refresh.

franklegacy
Автор

Tnx. After 2 year of Jupyter work I finally learnt how to use the DD option. Any specific tips on Jupyter Lab ?

mikekramer
Автор

Hi Keith. I have been following and watching your videos for a long time. I really appreciate all your teaching and sharing. What do you think of JupyterLab? I used to use VS Code with Jupyter extension until it has issue with animated plot in plotly. It forced me to switch back to original Jupyter family. Accidentally I discover the JupyterLab and give it a shot. It has file browser which is good for file locating and mouse clicking. It has terminal to run command lines. It can also create and edit ipynb file, py file and txt file. What's more is it has window splitting function by simply using mouse to drag. I can image how cool it is to display on a 32 inch monitor or even larger! Wonder your opinion on it, especially the drawbacks!

keijiu
Автор

Bravo man. 👌💞🤩🌺😊💪
You are the best. Keep going on 💪

prof_albert
Автор

How do you get the run button on the left of the code cell?

kingjosh
Автор

Hi Keith, I tried to follow along with your video but seems like my Jupyter Notebook doesn't accept any bash command. Do you have any idea how I should setup to run ! command? I tried this with Anaconda3 on Windows 11. Many thanks!

m.g.matthewshin
Автор

How can documents be nested/included in JupyterLab, being updated when changed?

kisho
Автор

!ls is not recognized as an internal or external command, operable program or batch file. I'm using Anaconda in Windows 10. How to solve this problem, please help.

premkumarramanathan
Автор

Julia - it's the Ju in Jupyter. Still hoping you'll come around and give us some Julia tutorials.

snorky
Автор

Hey, whenever i try to use %%notify, i get a javascript error saying $ is not defined. Can't find anything relating to this on the web.

_Clipper_
Автор

Very little of this works on my Windows computer... is it just me, or the way that it is?

physicsfaith