Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

ImportError running notebook dashboard with Plotly that runs fine in jupyter notebook #324

Open
dolfandringa opened this issue May 12, 2017 · 1 comment

Comments

@dolfandringa
Copy link

dolfandringa commented May 12, 2017

I deployed this very simple test notebook (attached as .txt because github doesn't allow .ipynb) using plotly from my jupyter notebook (using a python 3 kernel) to my jupyter dashboards server. I tried both a normal jupyter-dashboards-server installed through npm and a dev version cloned form the current HEAD of the git repos. But as soon as I open the dashboard, the firefox console gives me the following error:

ImportError : No module named 'plotly' 
 
ImportErrorTraceback (most recent call last)
<ipython-input-1-e10b0939f114> in <module>()
      1 import pandas as pd
      2 import numpy as np
----> 3 import plotly.graph_objs as go
      4 import plotly.figure_factory as ff
      5 from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

The dashboard runs fine with both a python2 and python3 kernel in the regular jupyter notebook on exactly the same machine though, and plotly is installed. Why doesn't the jupyter dashboards server not see plotly? Does it use a different PYTHONPATH?

Cheers,

Dolf.

@damelLP
Copy link

damelLP commented Jul 4, 2017

what venv are you running your kernel gateway in?

note: when you use the docker images it may not have all the dependencies that you may have installed locally

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants