Setup plotly.py with a custom plotly.js bundle
- node.js and npm
- python and pip (python3.5 is recommended)
virtualenv
(pip installvirtualenv
)
git clone
this gistcd
into it- run
npm i
- run
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 🍻
Deactivate the virtual environment with:
(custom-plotly) $ deactivate
I've attempted going through this process, but I get stuck on the last step of 1.
The make command wasn't recognized and after some googling I discovered that I needed something called GnuWin32.
After installing that and the make package, I then came across this new error
I run
make virtualenv
And the console spits out this
And now I'm kinda stuck..