Skip to content

Commit

Permalink
Update: add notebook-host to reslove offline render problem (pyechart…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx authored Sep 14, 2019
1 parent c6d9187 commit c3703f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyecharts/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ class _NotebookType:
ZEPPELIN = "zeppelin"


class _OnlineHost:
DEFAULT_HOST = "https://assets.pyecharts.org/assets/"
NOTEBOOK_HOST = "http://localhost:8888/nbextensions/assets/"


RenderType = _RenderType()
FileType = _FileType()
SymbolType = _SymbolType()
Expand All @@ -125,11 +130,12 @@ class _NotebookType:
GeoType = _GeoType()
BMapType = _BMapType
NotebookType = _NotebookType()
OnlineHostType = _OnlineHost()


class _CurrentConfig:
PAGE_TITLE = "Awesome-pyecharts"
ONLINE_HOST = "https://assets.pyecharts.org/assets/"
ONLINE_HOST = OnlineHostType.DEFAULT_HOST
NOTEBOOK_TYPE = NotebookType.JUPYTER_NOTEBOOK
GLOBAL_ENV = Environment(
keep_trailing_newline=True,
Expand Down

0 comments on commit c3703f4

Please sign in to comment.