# Running Bokeh from JupyterHub on Python 3

**URL:** <https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263>\
**Category:** Community Support\
**Created:** [June 4, 2016, 12:03am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263 "2016-06-04T00:03:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudipto\_Goswami](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/s/7993a0/32.png) [@Sudipto\_Goswami](https://discourse.bokeh.org/u/Sudipto_Goswami)\
**Post date:** [June 4, 2016, 12:03am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/1 "2016-06-04T00:03:53Z")

</div>

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:

```auto
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.

![](https://discourse-uploads.bokeh.org/original/1X/3fffc1a678e79a42777f29a7d7b9098113046afc.jpeg)

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [June 4, 2016, 12:25am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/2 "2016-06-04T00:25:27Z")

</div>

Is this location:

&nbsp;&nbsp;&nbsp;&nbsp;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 \<sudipto84goswami@gmail.com\> 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:  
> > &nbsp;&nbsp;ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir  
> > &nbsp;&nbsp;bash /usr/local/share/jupyter/kernels/bash  
> > &nbsp;&nbsp;python3 /usr/local/share/jupyter/kernels/python3  
> > &nbsp;&nbsp;sas /usr/local/share/jupyter/kernels/sas  
> > &nbsp;&nbsp;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 bokeh+unsubscribe@continuum.io.  
> > To post to this group, send email to bokeh@continuum.io.  
> > 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\](https://groups.google.com/a/continuum.io/d/msgid/bokeh/e6c2d16e-cfc6-4bd4-9525-031ab2b14a12%40continuum.io%5C).  
> > For more options, visit [https://groups.google.com/a/continuum.io/d/optout\](https://groups.google.com/a/continuum.io/d/optout%5C).  
> > \<Bokeh\_Pkg\_Error.JPG\>

---

<div class="post-metadata">

**Author:** ![Sudipto\_Goswami](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/s/7993a0/32.png) [@Sudipto\_Goswami](https://discourse.bokeh.org/u/Sudipto_Goswami)\
**Post date:** [June 4, 2016, 12:47am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/3 "2016-06-04T00:47:47Z")

</div>

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:
> 
> > ```auto
> > 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.

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [June 4, 2016, 12:55am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/4 "2016-06-04T00:55:31Z")

</div>

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 \<sudipto84goswami@gmail.com\> 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:  
> > &nbsp;&nbsp;ir /app/sasdata/jupyter/anaconda3/share/jupyter/kernels/ir  
> > &nbsp;&nbsp;bash /usr/local/share/jupyter/kernels/bash  
> > &nbsp;&nbsp;python3 /usr/local/share/jupyter/kernels/python3  
> > &nbsp;&nbsp;sas /usr/local/share/jupyter/kernels/sas  
> > &nbsp;&nbsp;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 bokeh+unsubscribe@continuum.io.  
> > To post to this group, send email to bokeh@continuum.io.  
> > 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\](https://groups.google.com/a/continuum.io/d/msgid/bokeh/65c720b7-1d3c-404e-a0d4-9a0c8d7bcfc4%40continuum.io%5C).  
> > For more options, visit [https://groups.google.com/a/continuum.io/d/optout\](https://groups.google.com/a/continuum.io/d/optout%5C).

---

<div class="post-metadata">

**Author:** ![Sudipto\_Goswami](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/s/7993a0/32.png) [@Sudipto\_Goswami](https://discourse.bokeh.org/u/Sudipto_Goswami)\
**Post date:** [June 4, 2016, 1:09am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/5 "2016-06-04T01:09:08Z")

</div>

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 [sudipto8...@gmail.com](mailto:sudipto8...@gmail.com) 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 [bokeh+un...@continuum.io](mailto:bokeh+un...@continuum.io).
> > 
> > > To post to this group, send email to [bo...@continuum.io](mailto:bo...@continuum.io).
> > 
> > > 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](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](https://groups.google.com/a/continuum.io/d/optout).

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [June 4, 2016, 2:46am UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/6 "2016-06-04T02:46:23Z")

</div>

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 \<sudipto84goswami@gmail.com\> 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 \<sudipto8...@gmail.com\> 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 bokeh+un...@continuum.io.  
> > \> To post to this group, send email to bo...@continuum.io.  
> > \> 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\](https://groups.google.com/a/continuum.io/d/msgid/bokeh/65c720b7-1d3c-404e-a0d4-9a0c8d7bcfc4%40continuum.io%5C).  
> > \> For more options, visit [https://groups.google.com/a/continuum.io/d/optout\](https://groups.google.com/a/continuum.io/d/optout%5C).
> > 
> > --  
> > 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 bokeh+unsubscribe@continuum.io.  
> > To post to this group, send email to bokeh@continuum.io.  
> > 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\](https://groups.google.com/a/continuum.io/d/msgid/bokeh/3e3c593f-788b-4ba5-a304-66f51ed1e8e3%40continuum.io%5C).  
> > For more options, visit [https://groups.google.com/a/continuum.io/d/optout\](https://groups.google.com/a/continuum.io/d/optout%5C).

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads.bokeh.org/original/2X/1/14eb24f9e10e4e9b78e3f10f66c04ffa96446e5a.svg) [@system](https://discourse.bokeh.org/u/system)\
**Post date:** [July 21, 2021, 9:08pm UTC](https://discourse.bokeh.org/t/running-bokeh-from-jupyterhub-on-python-3/1263/7 "2021-07-21T21:08:28Z")

</div>


