From 259f3aa4ddfd1a1d9b80e5a8357938b780f0ee47 Mon Sep 17 00:00:00 2001 From: Mark Colley <39366189+M-Colley@users.noreply.github.com> Date: Fri, 10 Feb 2023 18:30:57 -0500 Subject: [PATCH] Fix IPython error display (#1397) --- colab/demo.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/colab/demo.ipynb b/colab/demo.ipynb index e92f8b04d..d1c58ad6c 100644 --- a/colab/demo.ipynb +++ b/colab/demo.ipynb @@ -292,9 +292,9 @@ "if os.path.exists(f\"data/nerfstudio/{scene}/transforms.json\"):\n", " !ns-train nerfacto --viewer.websocket-port 7007 nerfstudio-data --data data/nerfstudio/$scene --downscale-factor 4\n", "else:\n", - " import IPython\n", - " display(IPython.display.HTML('

Error: Data processing did not complete

'))\n", - " display(IPython.display.HTML('

Please re-run `Downloading and Processing Data`, or view the FAQ for more info.

'))" + " from IPython.core.display import display, HTML\n", + " display(HTML('

Error: Data processing did not complete

'))\n", + " display(HTML('

Please re-run `Downloading and Processing Data`, or view the FAQ for more info.

'))" ] }, { @@ -383,4 +383,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}