I wanted to have Sagemath notebooks open on double click. I installed nbopen, then I had to manually add the Sagemath kernel to Jupyter (How to install SageMath kernel in Anaconda?), and when I finally managed to start notebooks on double click, I still ran into issues. Namely, running sys.path gives this.
['',
'/home/sage/.local/share/jupyter/kernels/sagemath',
'/home/sage/C',
'/home/sage/\\Users\\<user>\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\Scripts;C',
'/home/sage/\\Program Files\\SageMath 9.0\\runtime\\opt\\sagemath-9.0\\src;C',
'/home/sage/\\Program Files\\SageMath 9.0\\runtime\\opt\\sagemath-9.0\\src\\sage;',
'/opt/sagemath-9.0/local/lib/python37.zip',
'/opt/sagemath-9.0/local/lib/python3.7',
'/opt/sagemath-9.0/local/lib/python3.7/lib-dynload',
'/home/sage/C:\\Users\\<user>\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages/lib/python3.7/site-packages',
'/opt/sagemath-9.0/local/lib/python3.7/site-packages',
'/opt/sagemath-9.0/local/lib/python3.7/site-packages/win32',
'/opt/sagemath-9.0/local/lib/python3.7/site-packages/win32\\lib',
'/opt/sagemath-9.0/local/lib/python3.7/site-packages/Pythonwin',
'/opt/sagemath-9.0/local/lib/python3.7/site-packages/IPython/extensions',
'/home/sage/.sage/ipython-5.0.0']
How do I fix sys.path?