mirror of
https://github.com/pyecharts/pyecharts.git
synced 2026-02-01 17:46:01 +00:00
📚 update en and zh documentation
This commit is contained in:
parent
7507cdfdd3
commit
04f2523a80
@ -63,17 +63,16 @@ bar.render()
|
||||
|
||||
### A note on Jupyter notebook
|
||||
|
||||
To play with this new feature, it is recommended that 1) the old version must be uninstalled. 2) Your existing notebooks must be refreshed and re-ran. 3) to use your browser
|
||||
in privacy mode. Once you have verified all works, life will go as usual.
|
||||
For existing users, in order to play with the offline mode coming with 0.1.9.5, it is recommended that 1) the old version must be uninstalled. 2) Your existing notebooks must be refreshed and re-ran.
|
||||
|
||||
The required echarts javascript libraries are copied into nbextensions directory. In order to find out where it is on your operating system, you can do these:
|
||||
How the offline mode works is: all echarts javascript libraries are copied into nbextensions directory. In order to find out where it is on your operating system, you can do these:
|
||||
|
||||
```python
|
||||
from jupyter_core.paths import jupyter_data_dir
|
||||
print(jupyter_data_dir())
|
||||
```
|
||||
|
||||
Should you enforce pyecharts to reload all echarts javascript libraries, you will need to delete the hidden signature file: <<jupyter data dir>>/nbextensions/.pyecharts.signature.
|
||||
Should you enforce pyecharts to reload all echarts javascript libraries, you will need to delete the hidden signature file: <<jupyter data dir>>/nbextensions/.pyecharts.<<version>>.
|
||||
Upon next rendering, all javascript libraries will be copied again.
|
||||
|
||||
### Python2 Coding Problem
|
||||
|
||||
@ -71,6 +71,20 @@ bar.render()
|
||||
* ```render()```
|
||||
默认将会在根目录下生成一个 render.html 的文件,支持 path 参数,设置文件保存位置,如 render(r"e:\my_first_chart.html"),文件用浏览器打开。
|
||||
|
||||
|
||||
### Jupyter notebook 小贴士
|
||||
|
||||
对本库的现有用户来说,新版本(0.1.9.5)的离线模式要求1)老版本已完全卸载 2)您现有的notebook文档需要刷新并重新运行。
|
||||
|
||||
离线模式工作原理:pyecharts自动把echarts脚本文件装在了jupyter_data_dir()/nbextensions文件夹下面。以下代码可以告诉你jupyter data dir在您的操作系统里的具体位置:
|
||||
|
||||
```python
|
||||
from jupyter_core.paths import jupyter_data_dir
|
||||
print(jupyter_data_dir())
|
||||
```
|
||||
|
||||
如果您想要pyecharts更新所有的脚本文件的话,请删除<<jupyter data dir>>/nbextensions/.pyecharts.<<version>>. 在下一个画图动作的时候,您的脚本文件会被更新。
|
||||
|
||||
### Python2 编码问题
|
||||
默认的编码类型为 UTF-8,在 Python3 中是没什么问题的,Python3 对中文的支持好很多。但是在 Python2 中,请应用下面的语句,保证没有编码问题:
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user