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

WebIO extension not found by nbconvert only #496

Closed
tobydriscoll opened this issue Oct 27, 2022 · 2 comments
Closed

WebIO extension not found by nbconvert only #496

tobydriscoll opened this issue Oct 27, 2022 · 2 comments

Comments

@tobydriscoll
Copy link

The bug

WebIO works perfectly when I start jupyter from the command line and drop in a :p node. But if I use

jupyter nbconvert --execute --to html

on the same exact notebook, the resulting page has the dreaded "extension not detected" error. This is on macos Monterery.

Context

status:

[0f1e0344] WebIO v0.8.18
(base) [~/repos/SMiJ/pages]$ jupyter nbextension list                                                                                                                                 *[main]
Known nbextensions:
  config dir: /Users/driscoll/mambaforge/etc/jupyter/nbconfig
    notebook section
      jupytext/index  enabled 
      - Validating: OK
      nbdime/index  enabled 
      - Validating: OK
      webio-jupyter-nbextension/nbextension  enabled 
      - Validating: OK
      jupyter-js-widgets/extension  enabled 
      - Validating: OK

(base) [~/repos/SMiJ/pages]$ jupyter labextension list                                                                                                                                *[main]
JupyterLab v3.4.5
/Users/driscoll/mambaforge/share/jupyter/labextensions
        jupyterlab-jupytext v1.3.8+dev enabled OK (python, jupytext)
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        nbdime-jupyterlab v2.1.1 enabled OK
        webio-jupyterlab-provider v0.1.0 enabled OK (python, webio_jupyter_extension)
        @jupyter-widgets/jupyterlab-manager v3.1.1 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /Users/driscoll/mambaforge/share/jupyter/lab

From the html output of nbconvert:

using WebIO
node(:p,"Hello world")
The WebIO Jupyter extension was not detected. See the [WebIO Jupyter integration documentation ](https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/)for more information.
@twavv
Copy link
Member

twavv commented Oct 28, 2022

WebIO requires an active kernel/JS to work. Your example is pretty simple, but in the general case trying to render static HTML won't work. I don't foresee this changing unfortunately.

@tobydriscoll
Copy link
Author

Thanks for the explanation. I think plotly can do what I really wanted to accomplish, as it turns out.

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

No branches or pull requests

2 participants