GitHub - SInnget/interesting-jupyter-tricks: collection of interesting jupyter tricks · GitHub
Skip to content

About

collection of interesting jupyter tricks

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

interesting-jupyter-tricks

  • collect some interesting jupyter notebook tricks, say magics, widgets, and version control

Widgets

Magics

https://towardsdatascience.com/jupyter-notebook-hints-1f26b08429ad

autoreload
%load_ext autoreload;
autoreload 2
writefile
  • usage:
%%writefile pythoncode.py
import numpy
def append_if_not_exists(arr, x):
    if x not in arr:
        arr.append(x)

def some_useless_slow_function():
    arr = list()
    for i in range(10000):
        x = numpy.random.randint(0, 10000)
        append_if_not_exists(arr, x)

Version controls in jupyter notebook

About

collection of interesting jupyter tricks

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors