Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter nbextension install raise error #2741

Closed
wuyanqian0503 opened this issue Aug 9, 2017 · 6 comments
Closed

jupyter nbextension install raise error #2741

wuyanqian0503 opened this issue Aug 9, 2017 · 6 comments

Comments

@wuyanqian0503
Copy link

wuyanqian0503 commented Aug 9, 2017

I'm trying to install the extensions with the following set of commands:
jupyter nbextension install my_module [--sys-prefix|--user]
And it raise the following error:

$ jupyter nbextension install . [--sys-prefix|--user]

Traceback (most recent call last):
  File "/anaconda/bin/jupyter-nbextension", line 6, in <module>
    sys.exit(notebook.nbextensions.main())
  File "/anaconda/lib/python3.6/site-packages/jupyter_core/application.py", line 267, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/anaconda/lib/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
    app.start()
  File "/anaconda/lib/python3.6/site-packages/notebook/nbextensions.py", line 900, in start
    super(NBExtensionApp, self).start()
  File "/anaconda/lib/python3.6/site-packages/jupyter_core/application.py", line 256, in start
    self.subapp.start()
  File "/anaconda/lib/python3.6/site-packages/notebook/nbextensions.py", line 678, in start
    self.install_extensions()
  File "/anaconda/lib/python3.6/site-packages/notebook/nbextensions.py", line 639, in install_extensions
    raise ValueError("Only one nbextension allowed at a time. "

ValueError: Only one nbextension allowed at a time. Call multiple times to install multiple extensions.
@takluyver
Copy link
Member

takluyver commented Aug 9, 2017 via email

@wuyanqian0503
Copy link
Author

wuyanqian0503 commented Aug 9, 2017

Thanks a lot! Trouble you to fix another error raised when I try to enable the extension.

$ jupyter nbextension install .

Up to date: /usr/local/share/jupyter/nbextensions/.DS_Store
Up to date: /usr/local/share/jupyter/nbextensions/setup.py
Up to date: /usr/local/share/jupyter/nbextensions/my_tarball_bundler/__init__.py

    To initialize this nbextension in the browser every time the notebook (or other app) loads:
    
          jupyter nbextension enable <the entry point>

And to enable the extension:

$ jupyter nbextension enable my_tarball_bundler

Enabling notebook extension my_tarball_bundler...
      - Validating: problems found:
        - require?  X my_tarball_bundler

Seems not able to find the module named 'my_tarball_bundler'

@takluyver
Copy link
Member

nbextensions are usually javascript files for the frontend. If you're trying to extend the notebook server, you'd normally install it using standard Python packaging (pip etc), and enable it with jupyter serverextension enable.

@wuyanqian0503
Copy link
Author

wuyanqian0503 commented Aug 9, 2017

The examples in the notebook doc is not complete,is there any complete sever extension example that I can refer to ?

@takluyver
Copy link
Member

jupyter_nbextensions_configurator is a server extension to allow configuring nbextensions.

@wuyanqian0503
Copy link
Author

Thank you so much! I've installed my server extension and it runs successfully!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants