I am attempting to follow the directions in the Documentation
<http://jupyter-notebook.readthedocs.io/en/latest/extending/handlers.html#writing-a-notebook-server-extension>
for
writing and installing a custom server extension, but have encountered
several issues. *How do I install a server extension?* And can the
documentation be updated?
I copied the example extension code at the end of the documentation to a
file called `example_server_handler.py` and put this file into a folder
called `server_extension`
1. When I ran jupyter notebook
--NotebookApp.server_extensions="['server_extension.example_server_handler.py']"
1. server_extensions is deprecated, use nbserver_extensions
2. When I ran jupyter notebook
--NotebookApp.nbserver_extensions="['server_extension.example_server_handler.py']"
1. The 'nbserver_extensions' trait of a NotebookApp instance must be
a dict, but a value of class 'list' (i.e.
['server_extension.example_server_handler.py']) was specified.
3. When I ran jupyter notebook
--NotebookApp.nbserver_extensions="{'server_extension.example_server_handler.py':
True}"
1. ImportError: No module named 'server_extension'
I assume the issue is that I have not actually installed the extension, or
don't have it on my path.
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/612089a9-2a1a-4b80-b154-7b6161e45d3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.