I’m having trouble integrating 3D Slicer with Jupyter on my computer. I installed both Slicer and Jupyter, but am stuck on installing python packages. When I paste the below into the python interactor in Slicer as instructed here (https://github.com/Slicer/SlicerJupyter/blob/master/README.md), I get the error that pip_install is invalid syntax.
Thanks so much for your help
import os if os.name=='nt': # There are no official pyzmq wheels for Python-3.6 for Windows, so we have to install manually pip_install("https://files.pythonhosted.org/packages/94/e1/13059383d21444caa16306b48c8bf7a62331ca361d553d2119696ea67119/pyzmq-19.0.0-cp36-cp36m-win_amd64.whl") else: # PIL may be corrupted on linux, reinstall from pillow pip_install('--upgrade pillow --force-reinstall') pip_install("ipywidgets pandas ipyevents ipycanvas")