The Coolest Jupyter Notebook Hack
Three ways to retrieve a cell's output in Jupyter.
Have you ever forgotten to assign the results to a variable in Jupyter? Rather than recomputing the result by rerunning the cell, here are three ways to retrieve the output.
1️⃣ Use the underscore followed by the output-cell-index.
2️⃣/3️⃣ Use the 𝐎𝐮𝐭 or _𝐨𝐡 dict and specify the output-cell-index as the key.
Share 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.
Find the code for my tips here: GitHub.