['d:\\.profiles', 'D:\\Miniconda3\\envs\\data_analysis\\etc\\jupyter', 'D:\\ProgramData\\jupyter']
Per the docs, to ensure my extensions were installed correctly in the correct location, I executed these commands which resulted in "True":
notebook.nbextensions.check_nbextension('usability/codefolding', user=True)
notebook.nbextensions.check_nbextension('usability/codefolding/main.js', user=True)
Then I enable the extension via:
E = notebook.nbextensions.EnableNBExtensionApp()
E.enable_nbextension('usability/codefolding/main')
As a check, I opened up the notebook.json file located at D:\.profiles\nbconfig and the contents of which are:
{
"load_extensions": {
"usability/codefolding/main": true
}
}
Then I launch the notebook, but the extension is not loaded/working and I get no error messages in the terminal that I launched the jupyter notebook server from and I don't see any error messages in Firefox's developer javascript debugger tool (but I am not too familiar with javascript or web development in general) so I could be wrong about no javascript errors. I can visit the url http://127.0.0.1:8888/jupyter/nbextensions/usability/codefolding/main.js and see the js file.
I was told of this github issue https://github.com/jupyter/notebook/issues/250 but not sure if it applies to Windows also. My notebook version is 4.0.1
I also tried to install the extension using the "jupyter nbextension install" command:
jupyter nbextension install usability/codefolding/main
then get the following error messages:
> copying usability/codefolding/main -> D:\ProgramData\jupyter\nbextensions\main
Traceback (most recent call last):
File "D:\Miniconda3\envs\data_analysis\Scripts\jupyter-nbextension-script.py", line 5, in <module>
main()
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\traitlets\config\application.py", line 592, in launch_instance
app.start()
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\notebook\nbextensions.py", line 401, in start
super(NBExtensionApp, self).start()
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\jupyter_core\application.py", line 256, in start
self.subapp.start()
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\notebook\nbextensions.py", line 317, in start
self.install_extensions()
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\notebook\nbextensions.py", line 305, in install_extensions
nbextensions_dir=self.nbextensions_dir,
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\notebook\nbextensions.py", line 216, in install_nbextension
_maybe_copy(src, full_dest, verbose)
File "D:\Miniconda3\envs\data_analysis\lib\site-packages\notebook\nbextensions.py", line 53, in _maybe_copy
shutil.copy2(src, dest)
File "D:\Miniconda3\envs\data_analysis\lib\shutil.py", line 245, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "D:\Miniconda3\envs\data_analysis\lib\shutil.py", line 108, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'usability/codefolding/main'
What's interesting is the first line of the error message. It is trying to copy from D:\ProgramData\jupyter\nbextensions\main, but I have set my JUPYTER_PATH to D:\.profile\nbextensions So it appears to ignore that environment variable that I have set. What's also interesting is that it omitted the 'usability/codefolding' directory.
My notebook version is 4.0.1 Perhaps, I should wait for version 4.1 to install extensions?
Thanks.
- Daniel