from pyecharts.charts import Bar
bar = Bar()
bar.add_xaxis(['HW', 'XM', 'Apple', 'OPPO', 'Vivo'])
bar.add_yaxis('销售量', [100, 80, 90, 85, 87])
bar.render_notebook()
[I 17:51:55.679 NotebookApp] Serving notebooks from local directory: E:\PyCharmProject
[I 17:51:55.679 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 17:51:55.679 NotebookApp] http://localhost:8888/?token=9da7a219c2f47b2ac50462251a329a48971c13c22711c953
[I 17:51:55.679 NotebookApp] or http://127.0.0.1:8888/?token=9da7a219c2f47b2ac50462251a329a48971c13c22711c953
[I 17:51:55.679 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:51:55.684 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/wenhaoxu/AppData/Roaming/jupyter/runtime/nbserver-18576-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=9da7a219c2f47b2ac50462251a329a48971c13c22711c953
or http://127.0.0.1:8888/?token=9da7a219c2f47b2ac50462251a329a48971c13c22711c953
[I 17:51:55.685 NotebookApp] 302 GET /api/kernelspecs/ (127.0.0.1) 0.000000ms
[I 17:52:06.050 NotebookApp] Kernel started: 06cbc954-d4be-4a03-80a0-5b0c52d9e746, name: python3
[W 17:52:06.060 NotebookApp] No session ID specified
老师,运行后必须打开网页运行才能看到绘图结果,这样是对的吗,还是哪里设置错误啊
