Daily Dose of Data Science

Share this post

Supercharge Your Jupyter Kernel With ipyflow

www.blog.dailydoseofds.com

Discover more from Daily Dose of Data Science

High-quality insights on Data Science and Python, along with best practices — shared daily. Get a free 550+ page data science PDF guide and 450+ practice questions notebook.
Over 49,000 subscribers
Continue reading
Sign in

Supercharge Your Jupyter Kernel With ipyflow

Addressing some pain points of the default kernel.

Avi Chawla
Apr 10, 2023
9
Share this post

Supercharge Your Jupyter Kernel With ipyflow

www.blog.dailydoseofds.com
Share

This is a pretty cool jupyter hack I learned recently.

While using Jupyter, you must have noticed that when you update a variable, all its dependent cells have to be manually re-executed.

Also, at times, isn't it difficult to determine the exact sequence of cell executions that generated an output?

This is tedious and can get time-consuming if the sequence of dependent cells is long.

To resolve this, try 𝐢𝐩𝐲𝐟𝐥𝐨𝐰. It is a supercharged kernel for jupyter, which tracks the relationship between cells and variables.

Thus, at any point, you can obtain the corresponding code to reconstruct any symbol.

What's more, its magic command enables an automatic recursive re-execution of dependent cells if a variable is updated.

As shown in the demo above, updating the variable x automatically triggers its dependent cells.

Do note that 𝐢𝐩𝐲𝐟𝐥𝐨𝐰 offers a different kernel from the default kernel in Jupyter. Thus, once you install 𝐢𝐩𝐲𝐟𝐥𝐨𝐰, select the following kernel while launching a new notebook:

Creating a new notebook with ipyflow

Find more details here: ipyflow.

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day.

👉 Read what others are saying about this post on LinkedIn.

👉 Tell me you liked this post by leaving a heart react ❤️.

👉 If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science


Find the code for my tips here: GitHub.

I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn and Twitter.

9
Share this post

Supercharge Your Jupyter Kernel With ipyflow

www.blog.dailydoseofds.com
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing