# Chat () issue in rasa.jupyter (Jupyter Notebooks)

**URL:** <https://forum.rasa.com/t/chat-issue-in-rasa-jupyter-jupyter-notebooks/21125>\
**Category:** Rasa Open Source\
**Created:** [November 12, 2019, 7:16am UTC](https://forum.rasa.com/t/chat-issue-in-rasa-jupyter-jupyter-notebooks/21125 "2019-11-12T07:16:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeshwanth\_mandla](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yeshwanth\_mandla](https://forum.rasa.com/u/Yeshwanth_mandla)\
**Post date:** [November 12, 2019, 7:16am UTC](https://forum.rasa.com/t/chat-issue-in-rasa-jupyter-jupyter-notebooks/21125/1 "2019-11-12T07:16:07Z")

</div>

Hi, I followed this link [https://rasa.com/docs/rasa/api/jupyter-notebooks/](https://rasa.com/docs/rasa/api/jupyter-notebooks/) for creating a chatbot .

from rasa.jupyter import chat

chat(model\_path)

I encountered an error :

NameError Traceback (most recent call last) in from rasa.jupyter import chat chat(model\_path)

~/anaconda3\_501/lib/python3.6/site-packages/rasa/jupyter.py in chat(model\_path, agent, interpreter) 32 33 unpacked = model.get\_model(model\_path) -\> 34 agent = create\_agent(unpacked) 35 36 elif agent and interpreter:

~/anaconda3\_501/lib/python3.6/site-packages/rasa/run.py in create\_agent(model, endpoints) 77 ) 78 -\> 79 return Agent.load( 80 model, 81 generator=\_endpoints.nlg,

NameError: name ‘Agent’ is not defined

Rasa version - 1.4.3

No agent related information is defined in the jupyter notebook documentation What will be the solution? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [November 12, 2019, 10:08am UTC](https://forum.rasa.com/t/chat-issue-in-rasa-jupyter-jupyter-notebooks/21125/2 "2019-11-12T10:08:56Z")

</div>

Thanks for pointing this out! Looks like the documentation for the jupyter notebooks is still on rasa 1.1.5 😵 I’ll make an issue to get it up-to-date, but can’t promise it will get updated super soon.

In the meantime, if you specifically want to do it in a notebook, I recommend installing 1.1.5. Can I ask why you prefer to do it in the notebook instead of with the simple `rasa train` and `rasa shell` CLI commands?

---

<div class="post-metadata">

**Author:** ![Yeshwanth\_mandla](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yeshwanth\_mandla](https://forum.rasa.com/u/Yeshwanth_mandla)\
**Post date:** [November 12, 2019, 12:08pm UTC](https://forum.rasa.com/t/chat-issue-in-rasa-jupyter-jupyter-notebooks/21125/3 "2019-11-12T12:08:11Z")

</div>

Thanks for the recommendation, Actually, I did it in CLI but I just wanted to know how to work with the notebooks as well.

After installing 1.1.5, it works well!
