Skip to content

Commit c94d3fb

Browse files
committed
🚜 embed jupyter-echarts in pyecharts
1 parent 97079aa commit c94d3fb

46 files changed

Lines changed: 192 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Žpyecharts/js_extensions.pyβ€Ž

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import codecs
44

55
from lml.loader import scan_plugins
6-
from lml.plugin import PluginManager
6+
from lml.plugin import PluginManager, PluginInfo
77

88
import pyecharts.exceptions as exceptions
9+
from pyecharts.utils import get_resource_dir
910

1011
# here are all plugins from pyecharts team
1112
OFFICIAL_PLUGINS = [
@@ -98,6 +99,13 @@ def get_all_extensions(self):
9899
return self.js_extensions
99100

100101

102+
@PluginInfo('pyecharts_js_extension', tags=['built-in'])
103+
class Pypkg():
104+
def __init__(self):
105+
self.js_extension_path = get_resource_dir(
106+
"templates", "jupyter-echarts") # where the registry.json is
107+
108+
101109
EXTENSION_MANAGER = JsExtensionManager()
102110
# Load js & map file index into a dictionary.
103111
scan_plugins(

β€Žpyecharts/templates/jsβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žpyecharts/templates/jupyter-echarts/echarts/anhui.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/aomen.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/beijing.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/china.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/chongqing.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/diao4yu2dao3.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/echarts-gl.min.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyecharts/templates/jupyter-echarts/echarts/echarts-liquidfill.min.jsβ€Ž

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)