Discover more from Daily Dose of Data Science
Retrieve Previously Computed Output In Jupyter Notebook
This is indeed one of the coolest things I have learned about Jupyter Notebooks recently.
Have you ever been in a situation where you forgot to assign the results obtained after some computation to a variable? Left with no choice, one has to unwillingly recompute the result and assign it to a variable for further use.
Thankfully, you don't have to do that anymore!
IPython provides a dictionary "𝗢𝘂𝘁", which you can use to retrieve a cell's output. All you need to do is specify the cell number as the dictionary's key, which will return the corresponding output. Isn't that cool?
View a video version of this post on LinkedIn: Post Link.
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.
I like to explore, experiment and write about data science concepts and tools. You could connect with me on LinkedIn.