QuantEcon / lecture-datascience.myst

Source repository for QuantEcon Datascience
https://datascience.quantecon.org
25 stars 21 forks source link

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

Open GWilfred opened 3 weeks ago

GWilfred commented 3 weeks ago

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 commented 3 weeks ago

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 commented 2 weeks ago

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

mmcky commented 2 weeks ago

@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?