Skip to content

Commit

Permalink
Fix IPython error display (nerfstudio-project#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Colley authored Feb 10, 2023
1 parent 3cf2bb0 commit 259f3aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions colab/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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>'))"
]
},
{
Expand Down Expand Up @@ -383,4 +383,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 259f3aa

Please sign in to comment.