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

deprecated and will be removed in a future major version of JupyterLab. #260

Open
GWilfred opened this issue Nov 3, 2024 · 3 comments
Open

Comments

@GWilfred
Copy link

GWilfred commented Nov 3, 2024

I execute the following lines for the local installation

Activate jlab extensions

jupyter labextension install @jupyterlab/toc --no-build
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install plotlywidget --no-build
jupyter labextension install jupyterlab-plotly --no-build
jupyter lab build

I got these warnings

(QuantEcon) WG@WorkhorEinstein ~ % jupyter labextension install @jupyterlab/toc --no-build
(Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.

Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages
/opt/anaconda3/envs/QuantEcon/lib/python3.12/site-packages/jupyterlab/debuglog.py:54: UserWarning: An error occurred.
warnings.warn("An error occurred.")
/opt/anaconda3/envs/QuantEcon/lib/python3.12/site-packages/jupyterlab/debuglog.py:55: UserWarning: ValueError: No version of @jupyterlab/toc could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.

Conflicting Dependencies:
JupyterLab Extension Package

=0.15.3 <0.16.0 >=0.16.6 <0.17.0 @jupyter/react-components
=4.3.5 <4.4.0 >=4.4.0 <5.0.0 @jupyterlab/apputils
=6.2.5 <6.3.0 >=6.3.0 <7.0.0 @jupyterlab/coreutils
=4.2.5 <4.3.0 >=4.3.0 <5.0.0 @jupyterlab/rendermime
=3.10.5 <3.11.0 >=3.11.0 <4.0.0 @jupyterlab/rendermime-interfaces
=4.2.5 <4.3.0 >=4.3.0 <5.0.0 @jupyterlab/translation
=4.2.5 <4.3.0 >=4.3.0 <5.0.0 @jupyterlab/ui-components
warnings.warn(msg[-1].strip())
/opt/anaconda3/envs/QuantEcon/lib/python3.12/site-packages/jupyterlab/debuglog.py:56: UserWarning: See the log file for details: /var/folders/34/12_19kc13sv754cg6dn6dg740000gn/T/jupyterlab-debug-tmxdpbap.log
warnings.warn(f"See the log file for details: {log_path!s}")
(QuantEcon) WG@WorkhorEinstein ~ % jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
(Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.

Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages
(QuantEcon) WG@WorkhorEinstein ~ % jupyter labextension install plotlywidget --no-build
(Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.

Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages
(QuantEcon) WG@WorkhorEinstein ~ %

What is the workaround to install the required packages?

Best regards Wilfred

@doctor-phil
Copy link
Collaborator

doctor-phil commented Nov 3, 2024

Hi @GWilfred, thanks for bringing this to my attention. We are currently in the process of upgrading the environment.

Tagging @mmcky in case he can check on what to do with the deprecated jupyter labextension

@doctor-phil
Copy link
Collaborator

Hi @GWilfred, can you pull the latest changes from main and try building again?

@mmcky
Copy link
Contributor

mmcky commented Nov 5, 2024

@GWilfred if you are using the anaconda python distribution you can create the same environment that the lectures use to run for the website by executing

conda env create -f environment.yml

using the environment.yml file at the root level of this repository.

You will then be using the same software that is tested against the website.

re: your issue above.

It looks like your Jupyter lab may be on an older version than is needed for the extensions you are trying to install?

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

3 participants