I have been using Jupyter Notebooks for over 9 years now. Here are 5 hidden features I discovered that most users aren't aware of:
1) Retrieve a cell’s output in Jupyter If you often forget to assign the results of a Jupyter cell to a variable, you can use the `Out` dictionary to retrieve the output. Check this 👇
2) Enrich the default preview of a DataFrame Printing a DataFrame hardly tells anything about what’s inside this data. Jupyter-DataTables enriches it with: - sorting - filtering - exporting - pagination - column data type - column distribution Check this 👇
3) Generate helpful hints as you write Pandas code Dovpanda is a pretty cool tool that gives suggestions/warnings about your data manipulation steps Check this 👇
4) Restart the Jupyter kernel without losing variables You can use the store magic command to store and retrieve a variable back, even after restarting the kernel. This way, you can avoid dumping data explicitly to disk or creating pickles. Check this 👇
5) Improve rendering of DataFrames Jupyter is a web-based IDE, we can format its output just like web pages. Thus, you can style your DataFrames using the style API of Pandas and speed up data analysis 👇
That's a wrap! If you found it insightful, reshare it with your network. Find me → @_avichawla Every day, I share tutorials and insights on DS, ML, LLMs, and RAGs.
Avi Chawla
Avi Chawla2.8. klo 14.34
I have been using Jupyter Notebooks for over 9 years now. Here are 5 hidden features I discovered that most users aren't aware of:
32,29K