diff --git a/backend/src/apiserver/visualization/exporter.py b/backend/src/apiserver/visualization/exporter.py index c5cc3d0f8cc..2f56f57711f 100644 --- a/backend/src/apiserver/visualization/exporter.py +++ b/backend/src/apiserver/visualization/exporter.py @@ -149,5 +149,5 @@ def generate_html_from_notebook(self, nb: NotebookNode) -> Text: # Output generator self.ep.preprocess(nb, {"metadata": {"path": Path.cwd()}}, self.km) # Export all html and outputs - body, _ = html_exporter.from_notebook_node(nb) + body, _ = html_exporter.from_notebook_node(nb, resources={}) return body diff --git a/backend/src/apiserver/visualization/templates/full.tpl b/backend/src/apiserver/visualization/templates/full.tpl index 58107182f62..2aac4185414 100644 --- a/backend/src/apiserver/visualization/templates/full.tpl +++ b/backend/src/apiserver/visualization/templates/full.tpl @@ -15,32 +15,7 @@ {% block ipywidgets %} -{%- if "widgets" in nb.metadata -%} - -{%- endif -%} + {% endblock ipywidgets %} {% for css in resources.inlining.css -%} @@ -98,4 +73,4 @@ div#notebook-container{ {% block footer %} {{ super() }} -{% endblock footer %} \ No newline at end of file +{% endblock footer %} diff --git a/frontend/server/app.ts b/frontend/server/app.ts index b3e4065b6e7..2b9e819ac3b 100644 --- a/frontend/server/app.ts +++ b/frontend/server/app.ts @@ -192,8 +192,5 @@ function createUIServer(options: UIConfigs) { app.use(basePath, StaticHandler(options.server.staticDir)); app.use(StaticHandler(options.server.staticDir)); - /** Fallback to index.html */ - app.get('*', indexHtmlHandler); - return app; } diff --git a/test/cloudbuild/visualization.yaml b/test/cloudbuild/visualization.yaml new file mode 100644 index 00000000000..61c0a29adc3 --- /dev/null +++ b/test/cloudbuild/visualization.yaml @@ -0,0 +1,8 @@ +steps: + - id: "visualization-server" + name: "gcr.io/cloud-builders/docker" + args: + ["build", "-t", "$_GCR_BASE/visualization-server", "-f", "backend/Dockerfile.visualization", "."] +images: + - "$_GCR_BASE/visualization-server" +timeout: 1800s # 30min