Running Bokeh from JupyterHub on Python 3

Hi All,

I am trying to configure the Bokeh Package in our JupyterHub environment.

Versions:

Python 3.5.1 :: Anaconda custom (64-bit)

bokeh --version :: 0.11.1

Available kernels:

ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir

bash /usr/local/share/jupyter/kernels/bash

python3 /usr/local/share/jupyter/kernels/python3

sas /usr/local/share/jupyter/kernels/sas

scala211 /usr/local/share/jupyter/kernels/scala211

Now when i start a Python3 Kernel from Jup Hub, and just try to test for bokeh package using import bokeh I am getting import error.

Error:

ImportErrorTraceback (most recent call last)
<ipython-input-2-03f88f8b291e> in <module>()
----> 1 import bokeh

ImportError: No module named 'bokeh'

I tried to install the package both using pip install bokeh as well as conda install bokeh.

Can you please help me to resolve this.

Regards,

Sudipta.

Is this location:

    python3 /usr/local/share/jupyter/kernels/python3

Your Anaconda install? My guess is that it's not, and Jupyter is starting the wrong Python.

Bryan

···

On Jun 3, 2016, at 7:03 PM, Sudipto Goswami <[email protected]> wrote:

Hi All,

I am trying to configure the Bokeh Package in our JupyterHub environment.

Versions:
Python 3.5.1 :: Anaconda custom (64-bit)
bokeh --version :: 0.11.1

Available kernels:
  ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir
  bash /usr/local/share/jupyter/kernels/bash
  python3 /usr/local/share/jupyter/kernels/python3
  sas /usr/local/share/jupyter/kernels/sas
  scala211 /usr/local/share/jupyter/kernels/scala211

Now when i start a Python3 Kernel from Jup Hub, and just try to test for bokeh package using import bokeh I am getting import error.

Error:
ImportError
Traceback (most recent call last)

<ipython-input-2-03f88f8b291e> in <module>()
----> 1 import bokeh

ImportError
: No module named 'bokeh'

I tried to install the package both using pip install bokeh as well as conda install bokeh.

Can you please help me to resolve this.

Regards,
Sudipta.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e6c2d16e-cfc6-4bd4-9525-031ab2b14a12%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<Bokeh_Pkg_Error.JPG>

Hi Bryan,

I tried to execute Python codes from the Hub and it’s working fine. Can you please advice what needs to be done to correct it as I am entirely new in this.

Regards,’

Sudipta

···

On Friday, June 3, 2016 at 8:03:53 PM UTC-4, Sudipto Goswami wrote:

Hi All,

I am trying to configure the Bokeh Package in our JupyterHub environment.

Versions:

Python 3.5.1 :: Anaconda custom (64-bit)

bokeh --version :: 0.11.1

Available kernels:

ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir

bash /usr/local/share/jupyter/kernels/bash

python3 /usr/local/share/jupyter/kernels/python3

sas /usr/local/share/jupyter/kernels/sas

scala211 /usr/local/share/jupyter/kernels/scala211

Now when i start a Python3 Kernel from Jup Hub, and just try to test for bokeh package using import bokeh I am getting import error.

Error:

ImportErrorTraceback (most recent call last)
<ipython-input-2-03f88f8b291e> in <module>()
----> 1 import bokeh

ImportError: No module named 'bokeh'

I tried to install the package both using pip install bokeh as well as conda install bokeh.

Can you please help me to resolve this.

Regards,

Sudipta.

I'm sorry, I've never used JupyterHub, so I can't give any specific advice. It just looks very much like the python that you installed Bokeh into is not the same as the python that JupyterHub is using. Perhaps you might ask on the Jupyter mailing list?

Bryan

···

On Jun 3, 2016, at 7:47 PM, Sudipto Goswami <[email protected]> wrote:

Hi Bryan,

I tried to execute Python codes from the Hub and it's working fine. Can you please advice what needs to be done to correct it as I am entirely new in this.

Regards,'
Sudipta

On Friday, June 3, 2016 at 8:03:53 PM UTC-4, Sudipto Goswami wrote:
Hi All,

I am trying to configure the Bokeh Package in our JupyterHub environment.

Versions:
Python 3.5.1 :: Anaconda custom (64-bit)
bokeh --version :: 0.11.1

Available kernels:
  ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir
  bash /usr/local/share/jupyter/kernels/bash
  python3 /usr/local/share/jupyter/kernels/python3
  sas /usr/local/share/jupyter/kernels/sas
  scala211 /usr/local/share/jupyter/kernels/scala211

Now when i start a Python3 Kernel from Jup Hub, and just try to test for bokeh package using import bokeh I am getting import error.

Error:
ImportError
Traceback (most recent call last)

<ipython-input-2-03f88f8b291e> in <module>()
----> 1 import bokeh

ImportError
: No module named 'bokeh'

I tried to install the package both using pip install bokeh as well as conda install bokeh.

Can you please help me to resolve this.

Regards,
Sudipta.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/65c720b7-1d3c-404e-a0d4-9a0c8d7bcfc4%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,

Thanks for your response. Just eager to know how you came to the conclusion that the Python where I installed Bokeh is not the same as the Python which the Jupyter Hub is using.

Can you please throw some insight on it so that I can cross check this. Might be I have messed up somewhere, but trying to figure it out and so I need your assistance.

Regards,

Sudipta.

···

On Friday, June 3, 2016 at 8:55:34 PM UTC-4, Bryan Van de ven wrote:

I’m sorry, I’ve never used JupyterHub, so I can’t give any specific advice. It just looks very much like the python that you installed Bokeh into is not the same as the python that JupyterHub is using. Perhaps you might ask on the Jupyter mailing list?

Bryan

On Jun 3, 2016, at 7:47 PM, Sudipto Goswami [email protected] wrote:

Hi Bryan,

I tried to execute Python codes from the Hub and it’s working fine. Can you please advice what needs to be done to correct it as I am entirely new in this.

Regards,’

Sudipta

On Friday, June 3, 2016 at 8:03:53 PM UTC-4, Sudipto Goswami wrote:

Hi All,

I am trying to configure the Bokeh Package in our JupyterHub environment.

Versions:

Python 3.5.1 :: Anaconda custom (64-bit)

bokeh --version :: 0.11.1

Available kernels:

ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir

bash /usr/local/share/jupyter/kernels/bash

python3 /usr/local/share/jupyter/kernels/python3

sas /usr/local/share/jupyter/kernels/sas

scala211 /usr/local/share/jupyter/kernels/scala211

Now when i start a Python3 Kernel from Jup Hub, and just try to test for bokeh package using import bokeh I am getting import error.

Error:

ImportError

Traceback (most recent call last)

in ()

----> 1 import bokeh

ImportError

: No module named ‘bokeh’

I tried to install the package both using pip install bokeh as well as conda install bokeh.

Can you please help me to resolve this.

Regards,

Sudipta.


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/65c720b7-1d3c-404e-a0d4-9a0c8d7bcfc4%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Sudipta,

Unless you go out of your way to change the default install location, Anaconda installs itself into $HOME/anaconda, which is different from the location that you show below reported by JupyterHub for python3.

Thanks,

Bryan

···

On Jun 3, 2016, at 8:09 PM, Sudipto Goswami <[email protected]> wrote:

Hi Bryan,

Thanks for your response. Just eager to know how you came to the conclusion that the Python where I installed Bokeh is not the same as the Python which the Jupyter Hub is using.

Can you please throw some insight on it so that I can cross check this. Might be I have messed up somewhere, but trying to figure it out and so I need your assistance.

Regards,
Sudipta.

On Friday, June 3, 2016 at 8:55:34 PM UTC-4, Bryan Van de ven wrote:
I'm sorry, I've never used JupyterHub, so I can't give any specific advice. It just looks very much like the python that you installed Bokeh into is not the same as the python that JupyterHub is using. Perhaps you might ask on the Jupyter mailing list?

Bryan

> On Jun 3, 2016, at 7:47 PM, Sudipto Goswami <[email protected]> wrote:
>
> Hi Bryan,
>
> I tried to execute Python codes from the Hub and it's working fine. Can you please advice what needs to be done to correct it as I am entirely new in this.
>
> Regards,'
> Sudipta
>
> On Friday, June 3, 2016 at 8:03:53 PM UTC-4, Sudipto Goswami wrote:
> Hi All,
>
> I am trying to configure the Bokeh Package in our JupyterHub environment.
>
> Versions:
> Python 3.5.1 :: Anaconda custom (64-bit)
> bokeh --version :: 0.11.1
>
> Available kernels:
> ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir
> bash /usr/local/share/jupyter/kernels/bash
> python3 /usr/local/share/jupyter/kernels/python3
> sas /usr/local/share/jupyter/kernels/sas
> scala211 /usr/local/share/jupyter/kernels/scala211
>
> Now when i start a Python3 Kernel from Jup Hub, and just try to test for bokeh package using import bokeh I am getting import error.
>
> Error:
> ImportError
> Traceback (most recent call last)
>
> <ipython-input-2-03f88f8b291e> in <module>()
> ----> 1 import bokeh
>
>
>
> ImportError
> : No module named 'bokeh'
>
>
> I tried to install the package both using pip install bokeh as well as conda install bokeh.
>
> Can you please help me to resolve this.
>
> Regards,
> Sudipta.
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/65c720b7-1d3c-404e-a0d4-9a0c8d7bcfc4%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3e3c593f-788b-4ba5-a304-66f51ed1e8e3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.