hupili / python-for-data-and-media-communication-gitbook

An open source book on Python tailed for communication students with zero background
117 stars 62 forks source link

nbviewer.jupyter.org cannot read interactive charts of my ipynb file #102

Closed DidoChan closed 5 years ago

DidoChan commented 5 years ago

Troubleshooting

Describe your environment

Describe your question

Nbviewer.jupyter.org cannot read all interactive charts of my ipynb file which can run successfully on the jupyter environment.

Image1:It runs successfully on the jupyter environment---- wechatimg835

Image2:Ooops on the Nbviewer.jupyter.org---- wechatimg834

hupili commented 5 years ago

Seems duplicate of #93 . Can you try this? https://github.com/hupili/python-for-data-and-media-communication-gitbook/issues/93#issuecomment-440897753

CCCCCecilia commented 5 years ago

pili gave me this solution, and it worked in my last bar chart. This is my coding:

For the pyecharts rendering problem, you can try the following steps:

Save the chart to standalone HTML files. Use the from IPython.display import IFrame way to load it into your notebook.

DidoChan commented 5 years ago

Seems duplicate of #93 . Can you try this? #93 (comment)

It works !

DidoChan commented 5 years ago

Seems duplicate of #93 . Can you try this? #93 (comment)

However the other static charts cannt show which appeared successfully yesterday...... image1:static charts coding works on jypyter environment. 222

image2:static charts cannot show on nbviewer.jupyter.org. 1111

ChicoXYC commented 5 years ago

@DidoChan For static charts, I think you can use the traditional way. Does it not support?

ChicoXYC commented 5 years ago

Merged those two issues in notes, please refer here.