git clone https://github.com/mknz/plotly-viewer
cd ./plotly-viewer
sudo make installThis installs ipython-plotly-viewer command and savefig in IPython startup function.
ipython-plotly-viewerThe command launches IPython with Plotly viewer and server.
You can save Plotly figure by passing it to savefig function.
>>> savefig(px.imshow(np.random.random((10, 10))))
>>> savefig px.imshow(np.random.random((10, 10))) # With %autocallAbove command saves figure data to plotly_figs directory with timestamp filename.
sudo make uninstall