# Unable to visualize the training data

**URL:** <https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159>\
**Category:** Rasa Open Source\
**Created:** [November 29, 2018, 8:30pm UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159 "2018-11-29T20:30:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teluguntla123](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Teluguntla123](https://forum.rasa.com/u/Teluguntla123)\
**Post date:** [November 29, 2018, 8:30pm UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/1 "2018-11-29T20:30:42Z")

</div>

Hello Friends, I am trying to visualize the training data. I followed the steps given in [rasa-demo-pydata18/rasa-moodbot-demo-complete-executed.ipynb at master · Manoj-t/rasa-demo-pydata18 · GitHub](https://github.com/Manoj-t/rasa-demo-pydata18/blob/master/rasa-moodbot-demo-complete-executed.ipynb). It is not producing me any image as output after executing that program. I am attaching screenshot of that. Can someone help me in solving this issue. Thanks in Advance.

 ![35%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/a04fefd74dd4318f5372ec383df075dbb24ae597.png)

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [November 30, 2018, 12:09am UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/2 "2018-11-30T00:09:03Z")

</div>

Hey, I can see you are running this in your console. I don’t think you will be able to get the image produced in your console so you have an option to run this in a jupyter notebook or openingstory\_graph.png file which should have been created in your working directory after you executed stories.visualize function.

---

<div class="post-metadata">

**Author:** ![Teluguntla123](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Teluguntla123](https://forum.rasa.com/u/Teluguntla123)\
**Post date:** [November 30, 2018, 12:29am UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/3 "2018-11-30T00:29:36Z")

</div>

Thank you @Juste for responding. I tried to open story\_graph.png file that generated in my working directory. It is saying “file couldn’t be opened, it is damaged”. you can see the picture I attached.

 ![00%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/cd2ce8bef5fb65c34b8e2b1e45074b0f3d7ff78b.jpeg)

---

<div class="post-metadata">

**Author:** ![naoko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/naoko/32/196_2.png) [@naoko](https://forum.rasa.com/u/naoko)\
**Post date:** [November 30, 2018, 2:20pm UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/4 "2018-11-30T14:20:55Z")

</div>

It is probably the image is not png. To confirm the real file type, you can run `file ${path_to_image}` in console (terminal). If the output shows `HTML document, ASCII text` then change the extension to `html` and see if you can open with browser.

---

<div class="post-metadata">

**Author:** ![Ajinkz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ajinkz/32/757_2.png) [@Ajinkz](https://forum.rasa.com/u/Ajinkz)\
**Post date:** [December 21, 2018, 9:21am UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/5 "2018-12-21T09:21:23Z")

</div>

You can visualise training data using following command:🤠

```
python -m rasa_core.visualize -d domain.yml -s data/stories.md -o graph.html -c nlu_config.yml

```

Make sure your current working directory should be same as that of your project directory

---

<div class="post-metadata">

**Author:** ![elcolie](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/elcolie/32/1746_2.png) [@elcolie](https://forum.rasa.com/u/elcolie)\
**Post date:** [January 22, 2019, 4:48pm UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/6 "2019-01-22T16:48:19Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/8/8eaae19316d05db2d54b53e8c4c5682ec6d6ad2b.png)No traceback in the output

Python 3.6.8

```auto
absl-py==0.7.0
appnope==0.1.0
APScheduler==3.5.3
astor==0.7.1
attrs==18.2.0
Automat==0.7.0
backcall==0.1.0
bleach==3.1.0
boto3==1.9.83
botocore==1.12.83
certifi==2018.11.29
chardet==3.0.4
Click==7.0
cloudpickle==0.6.1
colorclass==2.2.0
coloredlogs==10.0
colorhash==1.0.2
ConfigArgParse==0.13.0
constantly==15.1.0
cycler==0.10.0
cymem==1.31.2
cytoolz==0.9.0.1
decorator==4.3.0
defusedxml==0.5.0
dill==0.2.9
docopt==0.6.2
docutils==0.14
en-core-web-md==2.0.0
en-core-web-sm==2.0.0
entrypoints==0.3
fakeredis==0.10.3
fbmessenger==5.4.0
Flask==1.0.2
Flask-Cors==3.0.7
Flask-JWT-Simple==0.0.3
future==0.17.1
gast==0.2.2
gevent==1.4.0
greenlet==0.4.15
grpcio==1.18.0
h5py==2.9.0
humanfriendly==4.17
hyperlink==18.0.0
idna==2.8
incremental==17.5.0
ipykernel==5.1.0
ipython==7.2.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
itsdangerous==1.1.0
jedi==0.13.2
Jinja2==2.10
jmespath==0.9.3
jsonpickle==0.9.6
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
kiwisolver==1.0.1
klein==17.10.0
Markdown==3.0.1
MarkupSafe==1.1.0
matplotlib==2.2.3
mattermostwrapper==2.1
mistune==0.8.4
msgpack==0.5.6
msgpack-numpy==0.4.3.2
murmurhash==0.28.0
nbconvert==5.4.0
nbformat==4.4.0
networkx==2.2
notebook==5.7.4
numpy==1.16.0
packaging==17.1
pandocfilters==1.4.2
parso==0.3.1
pathlib==1.0.1
pexpect==4.6.0
pickleshare==0.7.5
pika==0.11.2
pip-tools==3.2.0
plac==0.9.6
preshed==1.0.1
prometheus-client==0.5.0
prompt-toolkit==2.0.7
protobuf==3.6.1
ptyprocess==0.6.0
pydot==1.4.1
Pygments==2.3.1
pygraphviz==1.5
PyHamcrest==1.9.0
PyInquirer==1.0.3
PyJWT==1.7.1
pykwalify==1.6.0
pymongo==3.7.2
pyparsing==2.3.1
PySocks==1.6.8
python-crfsuite==0.9.6
python-dateutil==2.7.5
python-engineio==3.2.3
python-socketio==2.1.2
python-telegram-bot==10.1.0
pytz==2018.9
PyYAML==3.13
pyzmq==17.1.2
qtconsole==4.4.3
rasa-core==0.12.4
rasa-core-sdk==0.12.1
rasa-nlu==0.13.8
redis==2.10.6
regex==2018.1.10
requests==2.21.0
requests-toolbelt==0.8.0
rocketchat-API==0.6.25
ruamel.yaml==0.15.86
s3transfer==0.1.13
scikit-learn==0.19.2
scipy==1.2.0
Send2Trash==1.5.0
simplejson==3.16.0
six==1.12.0
sklearn-crfsuite==0.3.6
slackclient==1.3.0
spacy==2.0.12
tabulate==0.8.2
tensorboard==1.10.0
tensorflow==1.10.0
termcolor==1.1.0
terminado==0.8.1
terminaltables==3.1.0
testpath==0.4.2
thinc==6.10.3
toolz==0.9.0
tornado==5.1.1
tqdm==4.29.1
traitlets==4.3.2
twilio==6.23.1
Twisted==18.9.0
typing==3.6.6
tzlocal==1.5.1
ujson==1.35
urllib3==1.24.1
wcwidth==0.1.7
webencodings==0.5.1
webexteamssdk==1.1.1
websocket-client==0.54.0
Werkzeug==0.14.1
widgetsnbextension==3.4.2
wrapt==1.10.11
zope.interface==4.6.0

```

OSX 10.14.2

---

<div class="post-metadata">

**Author:** ![elcolie](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/elcolie/32/1746_2.png) [@elcolie](https://forum.rasa.com/u/elcolie)\
**Post date:** [January 22, 2019, 4:50pm UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/7 "2019-01-22T16:50:55Z")

</div>

Thank you very much @naoko

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/79172ac7dc3ad882f7eb59fa6cbcb8b4cd0a2a9b.png)

I have to rename it from `*.png` to `*.html`

---

<div class="post-metadata">

**Author:** ![Growing-bison](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/growing-bison/32/2164_2.png) [@Growing-bison](https://forum.rasa.com/u/Growing-bison)\
**Post date:** [March 22, 2019, 3:07am UTC](https://forum.rasa.com/t/unable-to-visualize-the-training-data/3159/8 "2019-03-22T03:07:44Z")

</div>

Thanks a lots. @naoko @elcolie
