# Why I can't import cursession?

**URL:** <https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270>\
**Category:** Community Support\
**Created:** [June 5, 2016, 6:42am UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270 "2016-06-05T06:42:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qiwei\_Peng](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/q/ee59a6/32.png) [@Qiwei\_Peng](https://discourse.bokeh.org/u/Qiwei_Peng)\
**Post date:** [June 5, 2016, 6:42am UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270/1 "2016-06-05T06:42:57Z")

</div>

I tried from bokeh.plotting and from [bokeh.io](http://bokeh.io)  
and neither of them can work.

I got error:

Import Error:cannot import name cursession

I want to use cursession.store\_objects(plot)

---

<div class="post-metadata">

**Author:** ![birdsarah\_continuum](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@birdsarah\_continuum](https://discourse.bokeh.org/u/birdsarah_continuum)\
**Post date:** [June 5, 2016, 7:05am UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270/2 "2016-06-05T07:05:19Z")

</div>

I don’t remember seeing cursession. Where did u see it mentioned?

Sarah Bird  
[sbird@continuum.io](mailto:sbird@continuum.io)

> **···**
>
> On Jun 4, 2016, at 11:42 PM, Qiwei Peng [pengqiwei.pqw@gmail.com](mailto:pengqiwei.pqw@gmail.com) wrote:
> 
> > I tried from bokeh.plotting and from [bokeh.io](http://bokeh.io)  
> > and neither of them can work.
> 
> > I got error:
> 
> > Import Error:cannot import name cursession
> 
> > 
> 
> > I want to use cursession.store\_objects(plot)
> 
> > –
> > 
> > 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](mailto:bokeh+unsubscribe@continuum.io).
> > 
> > To post to this group, send email to [bokeh@continuum.io](mailto:bokeh@continuum.io).
> > 
> > To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io?utm_medium=email&utm_source=footer).
> > 
> > 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:** ![Peter\_Wang1](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/p/85e7bf/32.png) [@Peter\_Wang1](https://discourse.bokeh.org/u/Peter_Wang1)\
**Post date:** [June 5, 2016, 7:26am UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270/3 "2016-06-05T07:26:55Z")

</div>

Possibly in older docs? e.g. [http://bokeh.pydata.org/en/0.10.0/docs/user\_guide/server.html#streaming-data-with-the-server](http://bokeh.pydata.org/en/0.10.0/docs/user_guide/server.html#streaming-data-with-the-server)

Qiwei, this is the most recent documentation on how to do things that previously had to be done using cursession():

[http://bokeh.pydata.org/en/latest/docs/user\_guide/server.html#building-bokeh-applications](http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#building-bokeh-applications)

Hopefully this is helpful?

-Peter

> **···**
>
> On Sun, Jun 5, 2016 at 2:05 AM, Sarah Bird [sbird@continuum.io](mailto:sbird@continuum.io) wrote:
> 
> > I don’t remember seeing cursession. Where did u see it mentioned?
> > 
> > Sarah Bird  
> > [sbird@continuum.io](mailto:sbird@continuum.io)
> 
> > On Jun 4, 2016, at 11:42 PM, Qiwei Peng [pengqiwei.pqw@gmail.com](mailto:pengqiwei.pqw@gmail.com) wrote:
> 
> > > I tried from bokeh.plotting and from [bokeh.io](http://bokeh.io)  
> > > and neither of them can work.
> 
> > > I got error:
> 
> > > Import Error:cannot import name cursession
> 
> > >
> 
> > > I want to use cursession.store\_objects(plot)
> 
> > > –
> > > 
> > > 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](mailto:bokeh+unsubscribe@continuum.io).
> > > 
> > > To post to this group, send email to [bokeh@continuum.io](mailto:bokeh@continuum.io).
> > > 
> > > To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io?utm_medium=email&utm_source=footer).
> > > 
> > > For more options, visit [https://groups.google.com/a/continuum.io/d/optout](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 [bokeh+unsubscribe@continuum.io](mailto:bokeh+unsubscribe@continuum.io).
> > 
> > To post to this group, send email to [bokeh@continuum.io](mailto:bokeh@continuum.io).
> 
> > To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/5E1BADE1-E703-477F-B1E7-76BCA59AF81B%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/5E1BADE1-E703-477F-B1E7-76BCA59AF81B%40continuum.io?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
> 
> –
> 
> **Peter Wang**
> 
> _CTO, Co-founder_
> 
> ![](https://docs.google.com/a/continuum.io/uc?id=0B8_D9l6ZUhNIaF9HbGZSV09TNHc&export=download)

---

<div class="post-metadata">

**Author:** ![Qiwei\_Peng](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/q/ee59a6/32.png) [@Qiwei\_Peng](https://discourse.bokeh.org/u/Qiwei_Peng)\
**Post date:** [June 6, 2016, 2:22pm UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270/4 "2016-06-06T14:22:45Z")

</div>

I saw it in stack overflow , some one wrote it.

在 2016年6月5日星期日 UTC+8下午3:05:23，Sarah Bird写道：

> **···**
>
> > I don’t remember seeing cursession. Where did u see it mentioned?
> > 
> > Sarah Bird  
> > [sb...@continuum.io](mailto:sb...@continuum.io)
> 
> > On Jun 4, 2016, at 11:42 PM, Qiwei Peng [pengqi...@gmail.com](mailto:pengqi...@gmail.com) wrote:
> 
> > > I tried from bokeh.plotting and from [bokeh.io](http://bokeh.io)  
> > > and neither of them can work.
> 
> > > I got error:
> 
> > > Import Error:cannot import name cursession
> 
> > >
> 
> > > I want to use cursession.store\_objects(plot)
> 
> > > –
> > > 
> > > 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/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io?utm_medium=email&utm_source=footer).
> > > 
> > > 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:** ![Qiwei\_Peng](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/q/ee59a6/32.png) [@Qiwei\_Peng](https://discourse.bokeh.org/u/Qiwei_Peng)\
**Post date:** [June 6, 2016, 2:23pm UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270/5 "2016-06-06T14:23:13Z")

</div>

Thank you very much, it’s really helpful.

在 2016年6月5日星期日 UTC+8下午3:27:17，pwang写道：

> **···**
>
> > Possibly in older docs? e.g. [http://bokeh.pydata.org/en/0.10.0/docs/user\_guide/server.html#streaming-data-with-the-server](http://bokeh.pydata.org/en/0.10.0/docs/user_guide/server.html#streaming-data-with-the-server)
> 
> > Qiwei, this is the most recent documentation on how to do things that previously had to be done using cursession():
> 
> > [http://bokeh.pydata.org/en/latest/docs/user\_guide/server.html#building-bokeh-applications](http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#building-bokeh-applications)
> 
> > 
> 
> > Hopefully this is helpful?
> 
> > 
> 
> > -Peter
> 
> > 
> 
> > 
> 
> > On Sun, Jun 5, 2016 at 2:05 AM, Sarah Bird [sb...@continuum.io](mailto:sb...@continuum.io) wrote:
> > 
> > > I don’t remember seeing cursession. Where did u see it mentioned?
> > > 
> > > Sarah Bird  
> > > [sb...@continuum.io](mailto:sb...@continuum.io)
> 
> > > On Jun 4, 2016, at 11:42 PM, Qiwei Peng [pengqi...@gmail.com](mailto:pengqi...@gmail.com) wrote:
> 
> > > > I tried from bokeh.plotting and from [bokeh.io](http://bokeh.io)  
> > > > and neither of them can work.
> 
> > > > I got error:
> 
> > > > Import Error:cannot import name cursession
> 
> > > >
> 
> > > > I want to use cursession.store\_objects(plot)
> 
> > > > –
> > > > 
> > > > 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/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io?utm_medium=email&utm_source=footer).
> > > > 
> > > > For more options, visit [https://groups.google.com/a/continuum.io/d/optout](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 [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/5E1BADE1-E703-477F-B1E7-76BCA59AF81B%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/5E1BADE1-E703-477F-B1E7-76BCA59AF81B%40continuum.io?utm_medium=email&utm_source=footer).
> > > 
> > > For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
> 
> > 
> 
> > –  
> > **Peter Wang**
> 
> > _CTO, Co-founder_
> 
> > 
> 
> >

---

<div class="post-metadata">

**Author:** ![birdsarah\_continuum](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@birdsarah\_continuum](https://discourse.bokeh.org/u/birdsarah_continuum)\
**Post date:** [June 6, 2016, 8:20pm UTC](https://discourse.bokeh.org/t/why-i-cant-import-cursession/1270/6 "2016-06-06T20:20:23Z")

</div>

Thanks for letting us  
know the source.

I’m not sure how best to deal with out-of-date StackOverflow posts.

Glad you fou nd the new  
docs!

> **···**
>
> On 6/6/16 7:22 AM, Qiwei Peng wrote:
> 
> > I saw it in stack overflow , some one wrote it.
> > 
> > ```
> > 在 2016年6月5日星期日 UTC+8下午3:05:23，Sarah Bird写道：
> > 
> > ```
> > 
> > > ```
> > > I don't remember seeing cursession. Where did u see it
> > > 
> > > ```
> > > 
> > > mentioned?
> > > 
> > > ```
> > > Sarah Bird
> > > 
> > > ```
> > > 
> > > [sb...@continuum.io](mailto:sb...@continuum.io)
> 
> > > ```
> > > On Jun 4, 2016, at 11:42 PM, Qiwei Peng < >
> > > 
> > > ```
> > > 
> > > wrote:
> 
> > > > I tried from bokeh.plotting and from [bokeh.io](http://bokeh.io)  
> > > > and neither of them can work.
> 
> > > > I got error:
> 
> > > > Import Error:cannot import name cursession
> 
> > > >
> 
> > > > I want to use cursession.store\_objects(plot)
> 
> > > > –
> > > > 
> > > > ```
> > > > 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 .
> > > > 
> > > > ```
> > > > 
> > > > To view this discussion on the web visit
> 
> > –
> > 
> > ```
> > 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](mailto: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/9e313aa2-433b-4870-aef6-2cfcecf688a6%40continuum.io?utm_medium=email&utm_source=footer) .
> > 
> > ```
> > 
> > For more options, visit .
> 
> –  
> **Sarah Bird**  
> _ **Developer, Bokeh** _
> 
> ```
> [
> ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
> ](http://continuum.io)
> 
> ```
> 
> [pengqi...@gmail.com](mailto:pengqi...@gmail.com)
> 
> [bo...@continuum.io](mailto:bo...@continuum.io)  
> [https://groups.google.com/a/](https://groups.google.com/a/)[continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io](http://continuum.io/d/msgid/bokeh/669e4ea3-4b12-4fe7-9702-8840456fa333%40continuum.io).
> 
> ```
> For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
> 
> [https://groups.google.com/a/continuum.io/d/msgid/bokeh/9e313aa2-433b-4870-aef6-2cfcecf688a6%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/9e313aa2-433b-4870-aef6-2cfcecf688a6%40continuum.io)
> 
> ```
> 
> [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout)

---

<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/why-i-cant-import-cursession/1270/7 "2021-07-21T21:08:30Z")

</div>


