<jupyter_start><jupyter_text>pyecharts[pyecharts](https://github.com/pyecharts/pyecharts) a wrapper for a new library [echarts](https://ecomfe.github.io/echarts-doc/public/en/index.html) made by [Baidu](https://www.baidu.com/). [documentation](https://github.com/pyecharts/pyecharts) [source](https://github.com/pyecharts/pyecharts) [installation](https://github.com/pyecharts/pyechartspyecharts-1) [tutorial](https://github.com/pyecharts/pyechartsbasic-usage) [gallery](http://gallery.echartsjs.com/)<jupyter_code>from jyquickhelper import add_notebook_menu
add_notebook_menu()
from pyecharts import __version__
__version__<jupyter_output><empty_output><jupyter_text>example<jupyter_code>from pyecharts.charts import Bar
from pyecharts import options as opts

attr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
v1 = [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
v2 = [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
bar = Bar().set_global_opts(title_opts=opts.TitleOpts(title="Bar charts",
                                                      subtitle="precipitation and evaporation one year"))
bar.add_xaxis(attr)
ext = opts.MarkLineOpts(data=[opts.MarkLineItem(type_="average")])
bar.add_yaxis("precipitation", v1, markline_opts=ext)
bar.add_yaxis("evaporation", v2, markline_opts=ext)
bar.render_notebook()<jupyter_output><empty_output><jupyter_text>After you install [pyecharts-snapshot](https://github.com/pyecharts/pyecharts-snapshot) and [phantom-js](http://phantomjs.org/download.html) (not needed anymore apparently).<jupyter_code>bar.render(path="echart_render.html")
from pyecharts_snapshot.main import make_a_snapshot
await make_a_snapshot("echart_render.html", "echart_render.png")
from IPython.display import Image
Image("echart_render.png", width='600')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16542948038176034, 'fraction_numerical': 0.03923647932131495, 'mean_word_length': 5.861818181818182, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '667456', 'license': 'MIT', 'n_tokens_mistral': 755, 'n_tokens_neox': 703, 'n_words': 113, 'path': '_doc/notebooks/2016/pydata/js_pyecharts.ipynb', 'repo_name': 'sdpython/jupytalk', 'size': '1886'}