Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 932 Bytes

File metadata and controls

37 lines (22 loc) · 932 Bytes

Some useful Jupyter Tips:

Load the Memory Profiler:

 %load_ext memory_profiler
 %memit x={i:i for i in range(1_000_000)}
 peak memory: 297.89 MiB, increment: 171.49 MiB

Changing Jupyter Password:

jupyter notebook password

Auto-Reload your changed python modules

%load_ext autoreload
%autoreload 2

No need to restart the kernel and re-execute all those cells each time you change your .py files you've imported.


Get the full use of your widescreen monitor with Jupyter Notebook (automatic with Jupyter Lab)

from IPython.core.display import display, HTML
display(HTML("<style>.container { width:95% !important; }</style>"))

Get Autocompletion working with pandas with df.['somecol']. [tab]

In ~/.ipython\profile_default\ipython_config.py:

 c = get_config()
 c.Completer.use_jedi = False

In Jupyter first cell:

 %config IPCompleter.greedy=True