Skip to content

Instantly share code, notes, and snippets.

@nehalecky
Created January 7, 2016 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nehalecky/b2507694fcd26679362a to your computer and use it in GitHub Desktop.
Save nehalecky/b2507694fcd26679362a to your computer and use it in GitHub Desktop.
Setup Jupyter Notebook with Plot.ly
# Can be copied to ~/.ipython/profile_default/startup/
import pandas as pd
import numpy as np
# Add plotly
import plotly
import plotly.plotly as py
from plotly.graph_objs import *
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
print("Plotly version: " + plotly.__version__) # version 1.9.x required
plotly.offline.init_notebook_mode() # run at the start of every notebook
#import cufflinks as cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment