You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
430 B

import os
from IPython.html.utils import url_path_join as ujoin
from tornado.web import StaticFileHandler
module_path = os.path.dirname(__file__)
def load_jupyter_server_extension(nbapp):
webapp = nbapp.web_app
base_url = webapp.settings['base_url']
webapp.add_handlers(".*$", [
(ujoin(base_url, r"/widgets/static/(.+)"), StaticFileHandler,
{'path': os.path.join(module_path, 'static')}),
])