In [ ]:
from __future__ import print_function, division
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline

import numpy as np
import pandas as pd
import textwrap
import os
import sys
import warnings
warnings.filterwarnings('ignore')

# special things
from pivottablejs import pivot_ui
from ipywidgets import FloatSlider, interactive, IntSlider
from scipy import interpolate

# sql
%load_ext sql_magic
import sqlalchemy
import sqlite3
from sqlalchemy import create_engine
sqlite_engine = create_engine('sqlite://')

# autoreload
%load_ext autoreload
%autoreload 1
# %aimport module_to_reload

# ehh...
# import bqplot.pyplot as plt
import ipyvolume as ipv
import altair as alt
from vega_datasets import data

import seaborn as sns
sns.set_context('poster', font_scale=1.3)

Check out nbdime

https://github.com/jupyter/nbdime

and the documentation about adding the nbdime https://nbdime.readthedocs.io/en/latest/extensions.html

Notebook Extensions

datestamper

Last updated 2018-09-17 19:03:57

2019-06-05 18:49:02

ToC(2)

ExecuteTime


In [1]:
print("hello world")


hello world

Snippets Menu


In [ ]:


In [ ]:


In [ ]:


In [ ]:
from __future__ import print_function, division
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:
fig, ax = plt.subplots(figsize=(12, 8))

fig.tight_layout()

In [ ]:
from __future__ import print_function, division
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline

import numpy as np
import pandas as pd
import textwrap
import os
import sys
import warnings
warnings.filterwarnings('ignore')

# special things
from pivottablejs import pivot_ui
from ipywidgets import FloatSlider, interactive, IntSlider
from scipy import interpolate

# sql
%load_ext sql_magic
import sqlalchemy
import sqlite3
from sqlalchemy import create_engine
sqlite_engine = create_engine('sqlite://')

# autoreload
%load_ext autoreload
%autoreload 1
# %aimport module_to_reload

# ehh...
# import bqplot.pyplot as plt
import ipyvolume as ipv
import altair as alt
from vega_datasets import data

import seaborn as sns
sns.set_context('poster', font_scale=1.3)

In [ ]:
from __future__ import print_function, division
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline

In [ ]:
from __future__ import print_function, division
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline

In [ ]:
import pandas as pd

Runtools


In [2]:
a = 10

In [ ]:
a = 2

In [3]:
b = 'b'
TTR = 0.13

In [4]:
print(a, b)


10 b

Hide input all


In [6]:
a = 54.5555

Python Markdown

The value of a is {{a}}. Useful for anything you want to report.

Scratchpad

CTRL-B

Variable Inspector


In [9]:
julija = "Julija!!"

Code prettify


In [ ]:
weight_categories = [    "vlow_weight",    "low_weight",
    "mid_weight",    "high_weight",
    "vhigh_weight",]

players['weightclass'] = pd.qcut(players['weight'],
     len(weight_categories), weight_categories)

In [ ]:
weight_categories = [
    "vlow_weight",
    "low_weight",
    "mid_weight",
    "high_weight",
    "vhigh_weight",
]

players["weightclass"] = pd.qcut(
    players["weight"], len(weight_categories), weight_categories
)

Collapsible Headings

Notify

In theory, this will give you a browser notification if your kernel has been busy for at least N seconds (after you give permission).


In [10]:
import time
time.sleep(10)

Outside Notebooks

Codefolding in Editor


In [ ]:
np.linspace??

Tree Filter

Filtered home screen


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]: