# Get started by running this cell (hitting Shift+Enter)
import JupyterNotebooksLib as slicernb
import slicer
import ipywidgets
ipywidgets.HTML(f'<h1><center><a href="{slicernb.AppWindow.defaultDesktopUrl()}" target="_blank"><img src="https://www.slicer.org/assets/img/3D-Slicer-Mark.svg" width="100" height="100"/><br>Click here to open 3D Slicer in a new window</a></center></h1>')
HTML(value='<h1><center><a href="/binder/jupyter/user/slicer-slicernotebooks-fwebmjgl//desktop/" target="_blan…
# Run this cell (Shift+Enter) to show application here
slicernb.AppWindow(contents='full')
# Run this cell to load a file from a URL.
# You can load your own data by changing inputs of downloadFromURL.
# Any questions? Write us on the Slicer forum: https://discourse.slicer.org
slicer.mrmlScene.Clear()
volume = slicernb.downloadFromURL(
uris="https://github.com/Slicer/SlicerTestingData/releases/download/MD5/39b01631b7b38232a220007230624c8e",
fileNames="MRHead.nrrd",
nodeNames="Volume")
slicernb.showVolumeRendering(volume)
IntProgress(value=0)
# Show viewers only
slicernb.AppWindow(contents='viewers');
# Show full application window
slicernb.AppWindow(contents='full');