wallneradam / jupyterlab-custom-css

Add custom CSS rules for JupyterLab
36 stars 6 forks source link

Not installing for Jupyter Lab V3.0.5 #5

Open ghost opened 3 years ago

ghost commented 3 years ago

The extension "@wallneradam/custom_css" does not yet support the current version of JupyterLab.

Conflicting Dependencies: JupyterLab Extension Package

=3.0.3 <3.1.0 >=2.0.2 <3.0.0 @jupyterlab/application

rduzagac-ebay commented 3 years ago

Hi I love this extension. it would be great if you can migrate to jupyterlab 3 Best

ghost commented 3 years ago

Same problem after upgrade to JL 3.0.7. The extension is not suitable for JL3

BjornFJohansson commented 3 years ago
Extension Installation Error
An error occurred installing <code>@wallneradam/custom_css</code>.

Error message:

The extension "@wallneradam/custom_css" does not yet support the current version of JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension      Package
>=3.0.6 <3.1.0          >=2.0.2 <3.0.0 @jupyterlab/application
RyannDaGreat commented 2 years ago

Same here! I could really use this plugin, could you please update it? Thank you!

rupanshi-chawda commented 2 years ago

Hello, I too have found a need for this extension and it would be a tremendous help if you could update it!

ValueError: The extension "@wallneradam/custom_css" does not yet support the current version of JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension      Package
>=3.2.6 <3.3.0          >=2.0.2 <3.0.0 @jupyterlab/application
See the log file for details:  /tmp/jupyterlab-debug-jht4ij8g.log
RyannDaGreat commented 2 years ago

It's been nearly a year since this post, and 2 years since the last commit...did anybody make a fork of this? Or a pull request?

kulttuuri commented 2 years ago

This repository fixes the problem: https://github.com/alwaysmpe/jupyterlab-custom-css/tree/lab_v3 Just download that repository as a zip archive, extract the folder and install the extension from a local folder: jupyter labextension install jupyterlab-custom-css-lab_v3. After that rebuild jupyter lab: jupyter lab build.

Hopefully some day the author of this extension would wake up from he's eversleep and update this extension :)

RyannDaGreat commented 2 years ago

This repository fixes the problem: https://github.com/alwaysmpe/jupyterlab-custom-css/tree/lab_v3 Just download that repository as a zip archive, extract the folder and install the extension from a local folder: jupyter labextension install jupyterlab-custom-css-lab_v3. After that rebuild jupyter lab: jupyter lab build.

Hopefully some day the author of this extension would wake up from he's eversleep and update this extension :)

Yay, thank you! I'll try it out

fredychivalan commented 2 years ago

@kulttuuri What instructions should I follow for docker environment... help me!

kulttuuri commented 2 years ago

Is it a pre-made docker image for jupyter lab? If so please link that here. If not, you can just ssh into your docker container and run the commands above.

rupanshi-chawda commented 2 years ago

Is it a pre-made docker image for jupyter lab? If so please link that here. If not, you can just ssh into your docker container and run the commands above.

@kulttuuri Yeah, I also have an Instance of jupyterlab deployed to Kubernetes. I added the following commands in my Dockerfile

git clone https://github.com/alwaysmpe/jupyterlab-custom-css.git && \
jupyter labextension install jupyterlab-custom-css-lab_v3 && \

but it shows the following error. ValueError: "jupyterlab-custom-css-lab_v3" is not a valid npm package I am a bit new to Jupyterlab and Docker. So if you could help it would be great!

kulttuuri commented 2 years ago

@rupanshi-chawda

Git cloning the repository will end up creating a folder called jupyterlab-custom-css so you just need to modify the second command to reflect that :) The final command should be:

git clone https://github.com/alwaysmpe/jupyterlab-custom-css.git && \
jupyter labextension install jupyterlab-custom-css && \
kulttuuri commented 2 years ago

Edit: Yeah, you are actually cloning the base repository without the branch lab_v3. So you need to add into your Docker the command to switch the branch to lab_v3. Also check that you are targeting the right folder, as specified above.

Another way to tackle is that instead of cloning, you could just download the zip file of that branch, extract that and then install that.

fredychivalan commented 2 years ago

Help me!

My Dockerfile

FROM jupyterhub/k8s-hub:1.2.0
...
RUN git clone -b lab_v3 https://github.com/alwaysmpe/jupyterlab-custom-css.git
RUN apt -y install nodejs npm 
RUN jupyter labextension install jupyterlab-custom-css
RUN jupyter lab build
Step 9/10 : RUN jupyter labextension install jupyterlab-custom-css
 ---> Running in 3b893943c95a
An error occurred.
ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
See the log file for details:  /tmp/jupyterlab-debug-_sj57krn.log
kulttuuri commented 2 years ago

@fredychivalan

What nodejs version does apt install nodejs npm install? You can check that by SSHing into the docker container (you can remove the failing commands to start the container) and then running node --version. If that version is older than 12, then you need to manually install nodejs without apt.

Also – I presume you already ran apt update before running apt get? That is needed to be run.

fredychivalan commented 2 years ago

In my local machine if it works now I need to use it in kubernetes, but entering the container is not the best option... I'm trying to customize my docker image by sending the above lines in my Dockerfile, and then using my own docker image, but it shows me the errors I've previously posted, what is the manual way to install npm

fredychivalan commented 2 years ago

@fredychivalan

What nodejs version does apt install nodejs npm install? You can check that by SSHing into the docker container (you can remove the failing commands to start the container) and then running node --version. If that version is older than 12, then you need to manually install nodejs without apt.

Also – I presume you already ran apt update before running apt get? That is needed to be run.

Entering the container, it issues me these errors.

Help me! imagen

rupanshi-chawda commented 2 years ago

@kulttuuri I did as you directed and extracted the repo by SSHing into the container and ran the jupyter labextension install jupyterlab-custom-css-lab_v3 command but it still shows the same error.

An error occurred.
ValueError: "jupyterlab-custom-css-lab_v3" is not a valid npm package
See the log file for details:  /tmp/jupyterlab-debug-kareniez.log

Any ideas on how to solve this. 😅

kulttuuri commented 2 years ago

@kulttuuri I did as you directed and extracted the repo by SSHing into the container and ran the jupyter labextension install jupyterlab-custom-css-lab_v3 command but it still shows the same error.

An error occurred.
ValueError: "jupyterlab-custom-css-lab_v3" is not a valid npm package
See the log file for details:  /tmp/jupyterlab-debug-kareniez.log

Any ideas on how to solve this. 😅

That error comes up if you do not have the folder jupyterlab-custom-css-lab_v3 in your current directory. Do you have it? Make sure that you also do not cd inside that directory, the command jupyter labextension install something tries to look for folder something in this case from your current directory and if it does not exist; then it tries to find that from NPM.

kulttuuri commented 2 years ago

Hard

@fredychivalan What nodejs version does apt install nodejs npm install? You can check that by SSHing into the docker container (you can remove the failing commands to start the container) and then running node --version. If that version is older than 12, then you need to manually install nodejs without apt. Also – I presume you already ran apt update before running apt get? That is needed to be run.

Entering the container, it issues me these errors.

Help me! imagen

Hmm, hard to say what's going on here. It's showing a permission error. Maybe try running the labextension command as sudo? If that does not work, you might want to check which user / group owns the folder /usr/local/share/jupyter/lab/settings and switch to being that same user or being in that same group.

fredychivalan commented 2 years ago

Hard

@fredychivalan What nodejs version does apt install nodejs npm install? You can check that by SSHing into the docker container (you can remove the failing commands to start the container) and then running node --version. If that version is older than 12, then you need to manually install nodejs without apt. Also – I presume you already ran apt update before running apt get? That is needed to be run.

Entering the container, it issues me these errors. Help me! imagen

Hmm, hard to say what's going on here. It's showing a permission error. Maybe try running the labextension command as sudo? If that does not work, you might want to check which user / group owns the folder /usr/local/share/jupyter/lab/settings and switch to being that same user or being in that same group.

You know where it saves the extensions that are installed on jupytehub