Setup plotly.py with a custom plotly.js bundle
virtualenv
(pip install virtualenv
)git clone
this gistcd
into itnpm i
make virtualenv
Run:
$ souce virtualenvs/custom-plotly/bin/activate
Run
(custom-plotly) $ pip install plotly
Run
(custom-plotly) $ make custom-plotly
The above assumes that your virtual environment runs python3.5
. If that is not
the case for you, change the py
variable in the makefile
.
(custom-plotly) $ python plot.py
which creates a temp-plot.html
file containing the resulting plotly graph and
opens it your default browser :beers:
Deactivate the virtual environment with:
(custom-plotly) $ deactivate