mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 10:55:57 +08:00
* in progress. camera_indices broken * faster dataloader. starting on pixel sampler logic * imagesampler and pixelsampler * lint and black * continuing merge * pytest working * fixed docs * docs * minor changes
30 lines
761 B
Python
30 lines
761 B
Python
# image stuff
|
|
import imageio
|
|
import mediapy as media
|
|
|
|
# ipython stuff
|
|
from IPython import get_ipython
|
|
|
|
# plotly stuff
|
|
import plotly.graph_objects as go
|
|
|
|
|
|
def setup_ipynb():
|
|
"""
|
|
https://stackoverflow.com/questions/15411967/how-can-i-check-if-code-is-executed-in-the-ipython-notebook
|
|
https://stackoverflow.com/questions/35595766/matplotlib-line-magic-causes-syntaxerror-in-python-script
|
|
This gets reference to the InteractiveShell instance
|
|
"""
|
|
try:
|
|
from IPython import get_ipython
|
|
|
|
get_ipython().run_line_magic("load_ext", "autoreload")
|
|
get_ipython().run_line_magic("autoreload", "2")
|
|
get_ipython().run_line_magic("matplotlib", "inline")
|
|
return True
|
|
except:
|
|
return False
|
|
|
|
|
|
setup_ipynb()
|