Created
January 17, 2020 17:20
-
-
Save luminoso/3e57c1a363ea894d748401a007ae36c1 to your computer and use it in GitHub Desktop.
jupyter notebook tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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