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

Failed to load model class 'BokehModel' from module '@bokeh/jupyter_bokeh' #208

Open
AlexeyPechnikov opened this issue Aug 8, 2024 · 0 comments

Comments

@AlexeyPechnikov
Copy link

Does not work on MacOS with Python 3.11 after the recent library changes. I managed to install it before for Python 3.10, but now I don't see a way to do it for Python 3.10 or 3.11.

% jupyter-lab --version    
4.2.4

% pip3.11 list | grep jupyterlab_widgets       
jupyterlab_widgets                3.0.11

% jupyter-labextension list                                       
JupyterLab v4.2.4
Other labextensions (built into JupyterLab)
   app dir: /opt/homebrew/Cellar/[email protected]/3.11.9_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab
        @bokeh/jupyter_bokeh v4.0.5 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.11 enabled OK
        jupyter-leaflet v0.19.2 enabled OK

Build recommended, please run `jupyter lab build`:
    @bokeh/jupyter_bokeh needs to be included in build

% jupyter-lab build    
[LabBuildApp] JupyterLab 4.2.4
[LabBuildApp] Building in /opt/homebrew/Cellar/[email protected]/3.11.9_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (production, minimized)
[LabBuildApp] ERROR | Build failed.
Troubleshooting: If the build failed due to an out-of-memory error, you
may be able to fix it by disabling the `dev_build` and/or `minimize` options.

If you are building via the `jupyter lab build` command, you can disable
these options like so:

jupyter lab build --dev-build=False --minimize=False

You can also disable these options for all JupyterLab builds by adding these
lines to a Jupyter config file named `jupyter_config.py`:

c.LabBuildApp.minimize = False
c.LabBuildApp.dev_build = False

If you don't already have a `jupyter_config.py` file, you can create one by
adding a blank file of that name to any of the Jupyter config directories.
The config directories can be listed by running:

jupyter --paths

Explanation:

- `dev-build`: This option controls whether a `dev` or a more streamlined
`production` build is used. This option will default to `False` (i.e., the
`production` build) for most users. However, if you have any labextensions
installed from local files, this option will instead default to `True`.
Explicitly setting `dev-build` to `False` will ensure that the `production`
build is used in all circumstances.

- `minimize`: This option controls whether your JS bundle is minified
during the Webpack build, which helps to improve JupyterLab's overall
performance. However, the minifier plugin used by Webpack is very memory
intensive, so turning it off may help the build finish successfully in
low-memory environments.

/opt/homebrew/lib/python3.11/site-packages/jupyterlab/debuglog.py:54: UserWarning: An error occurred.
  warnings.warn("An error occurred.")
/opt/homebrew/lib/python3.11/site-packages/jupyterlab/debuglog.py:55: UserWarning: RuntimeError: JupyterLab failed to build
  warnings.warn(msg[-1].strip())
/opt/homebrew/lib/python3.11/site-packages/jupyterlab/debuglog.py:56: UserWarning: See the log file for details: /var/folders/r9/myjqk4417vsbrknw1cnwld780000gn/T/jupyterlab-debug-5slp_djn.log
  warnings.warn(f"See the log file for details: {log_path!s}")
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

1 participant