Skip to content

Commit

Permalink
Ensure panel.js is served before session is starteds (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Sep 21, 2020
1 parent 2f57791 commit fe88283
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions panel/io/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from types import FunctionType, MethodType

from bokeh.document.events import ModelChangedEvent
from bokeh.embed.bundle import extension_dirs
from bokeh.embed.server import server_html_page_for_session
from bokeh.server.server import Server
from bokeh.server.views.session_handler import SessionHandler
Expand All @@ -33,6 +34,9 @@
# Private API
#---------------------------------------------------------------------

# Handle serving of the panel extension before session is loaded
extension_dirs['panel'] = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'dist'))

INDEX_HTML = os.path.join(os.path.dirname(__file__), '..', '_templates', "index.html")

def _origin_url(url):
Expand Down

0 comments on commit fe88283

Please sign in to comment.