Fix IPython error display (#1397)

This commit is contained in:
Mark Colley authored and GitHub committed 2023-02-10 15:30:57 -08:00
1 parent 3cf2bb09ac
commit 259f3aa4dd
1 file changed
+4 -4
+4 -4
View File
@@ -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('<h3 style=\"color:red\">Error: Data processing did not complete</h3>'))\n",
" display(IPython.display.HTML('<h3>Please re-run `Downloading and Processing Data`, or view the FAQ for more info.</h3>'))"
" from IPython.core.display import display, HTML\n",
" display(HTML('<h3 style=\"color:red\">Error: Data processing did not complete</h3>'))\n",
" display(HTML('<h3>Please re-run `Downloading and Processing Data`, or view the FAQ for more info.</h3>'))"
]
},
{
@@ -383,4 +383,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}