From 171ae8efee0b460e14d4561c678360348097dfca Mon Sep 17 00:00:00 2001 From: Zsailer Date: Tue, 25 Jun 2019 16:39:03 -0700 Subject: [PATCH 01/22] refactor to work with jupyter_server --- .../jupyter_server_config.d/voila.json | 2 +- setup.py | 2 +- .../default/nbconvert_templates/base.tpl | 10 +- .../default/nbconvert_templates/voila.tpl | 6 +- .../voila/templates/default/static/main.js | 2 +- voila/__init__.py | 3 +- voila/app.py | 374 +++--------------- voila/handler.py | 34 +- voila/treehandler.py | 7 +- 9 files changed, 86 insertions(+), 354 deletions(-) diff --git a/etc/jupyter/jupyter_server_config.d/voila.json b/etc/jupyter/jupyter_server_config.d/voila.json index ff38f42ff..7de60d1f5 100644 --- a/etc/jupyter/jupyter_server_config.d/voila.json +++ b/etc/jupyter/jupyter_server_config.d/voila.json @@ -1,7 +1,7 @@ { "ServerApp": { "jpserver_extensions": { - "voila.server_extension": true + "voila": true } } } diff --git a/setup.py b/setup.py index 634ac7824..e615a1d95 100644 --- a/setup.py +++ b/setup.py @@ -371,7 +371,7 @@ def get_data_files(): }, 'entry_points': { 'console_scripts': [ - 'voila = voila.app:main' + 'jupyter-voila = voila.app:main' ] }, 'install_requires': [ diff --git a/share/jupyter/voila/templates/default/nbconvert_templates/base.tpl b/share/jupyter/voila/templates/default/nbconvert_templates/base.tpl index 386da08e8..7580b6801 100644 --- a/share/jupyter/voila/templates/default/nbconvert_templates/base.tpl +++ b/share/jupyter/voila/templates/default/nbconvert_templates/base.tpl @@ -14,11 +14,10 @@ {%- block html_head_js -%} - {% block notebook_execute %} {%- set kernel_id = kernel_start() -%}