Skip to content

Instantly share code, notes, and snippets.

@luminoso
Created January 17, 2020 17:20
Show Gist options
  • Save luminoso/3e57c1a363ea894d748401a007ae36c1 to your computer and use it in GitHub Desktop.
Save luminoso/3e57c1a363ea894d748401a007ae36c1 to your computer and use it in GitHub Desktop.
jupyter notebook tricks
# list magics
%lsmagic
#
# print all outputs of a cell
#
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
#
# interactive graphs
#
%matplotlib notebook
#
# even more interactive
#
pip install plotly # Plotly is a pre-requisite before installing cufflinks
pip install cufflinks
#importing Pandas
import pandas as pd
#importing plotly and cufflinks in offline mode
import cufflinks as cf
import plotly.offline
cf.go_offline()
cf.set_config_file(offline=False, world_readable=True)
df.iplot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment