You can edit your application startup file (“.slicerrc.py”) which is run every time Slicer starts, and add the python code to that file:
https://slicer.readthedocs.io/en/latest/user_guide/settings.html#application-startup-file
You can edit your application startup file (“.slicerrc.py”) which is run every time Slicer starts, and add the python code to that file:
https://slicer.readthedocs.io/en/latest/user_guide/settings.html#application-startup-file