related to: jupyter notebook, anaconda3, windows 11
change start script in anaconda’s Script directory
for instance C:\myData\anaconda3\Scripts\jupyter-notebook-script.py
my source directory is located in C:\development\gitbase\python
edit C:\myData\anaconda3\Scripts\jupyter-notebook-script.py
# -*- coding: utf-8 -*-
import re
import sys
import notebook.notebookapp
if __name__ == '__main__':
notebook.notebookapp.NotebookApp.notebook_dir = u'C:\\development\\gitbase\\python'
# C:\development\gitbase\python
# sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(notebook.notebookapp.main())