block by etpinard 21eb47feaef0acfde93cea37c6a3710a

Setup plotly.py with a custom plotly.js bundle

plotly.py with custom plotly.js bundle

Setup plotly.py with a custom plotly.js bundle

Running this thing

Requirements

Step 1: setup dependencies and virtual environment

Step 2: activate virtual environment

Run:

$ souce virtualenvs/custom-plotly/bin/activate

Step 3: install plotly.py in virtual environment

Run

(custom-plotly) $ pip install plotly

Step 4: bundle and copy custom plotly.js bundle to plotly.py

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.

Step 5: plot !!!

(custom-plotly) $ python plot.py

which creates a temp-plot.html file containing the resulting plotly graph and opens it your default browser :beers:

When done

Deactivate the virtual environment with:

(custom-plotly) $ deactivate

plotly.py-custom-plotly.js-bundle

custom-plotly.js

makefile

package.json

plot.py