Skip to content

Commit

Permalink
doc: add bokeh section
Browse files Browse the repository at this point in the history
  • Loading branch information
wang0618 committed May 9, 2020
1 parent 5c80188 commit 18f5726
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if __name__ == "__main__":

## Demos

- [数据可视化demo](http://pywebio-charts.wangweimin.site/) : 使用 plotly、pyecharts 等库创建图表
- [数据可视化demo](http://pywebio-charts.wangweimin.site/) : 使用 bokeh、plotly、pyecharts 等库创建图表
- [其他demo](http://pywebio-demos.wangweimin.site/) : 包含PyWebIO基本输入输出演示和使用PyWebIO编写的小应用

## Document
Expand Down
18 changes: 18 additions & 0 deletions docs/libraries_support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@
-------------
PyWebIO支持使用第三方库进行数据可视化

bokeh
^^^^^^^^^^^^^^^^^^^^^^
`bokeh <https://github.com/bokeh/bokeh>`_ 是一个支持创建实时交互的数据可视化库。

在 PyWebIO 会话中调用 ``bokeh.io.output_notebook(notebook_type='pywebio')`` 来设置 bokeh 输出到PyWebIO::

from bokeh.io import output_notebook
from bokeh.io import show

output_notebook(notebook_type='pywebio')
fig = figure(...)
...
show(fig)

相应demo见 :charts_demo_host:`bokeh demo </?pywebio_api=bokeh>`

.. image:: https://cdn.jsdelivr.net/gh/wang0618/pywebio-chart-gallery@master/assets/bokeh.png

pyecharts
^^^^^^^^^^^^^^^^^^^^^^
`pyecharts <https://github.com/pyecharts/pyecharts>`_ 是一个使用Python创建 `Echarts <https://github.com/ecomfe/echarts>`_ 可视化图表的库。
Expand Down

0 comments on commit 18f5726

Please sign in to comment.