jyio / jupyter-marimo-proxy

Jupyter + Marimo = ❤️
Apache License 2.0
24 stars 5 forks source link

jupyter-marimo-proxy with jupyter docker-stacks images #6

Closed legout closed 2 months ago

legout commented 2 months ago

Hi,

I´m am trying to get jupyter-marimo-proxy running with any of the jupyter docker stackes images.

I have a very simple Dockerfile

FROM  quay.io/jupyter/base-notebook

RUN   pip install --no-cache-dir 'marimo>=0.6.21'
RUN   /opt/conda/bin/pip install https://github.com/jyio/jupyter-marimo-proxy/archive/main.zip

Unfortunately, there is no marimo icon after building the image and running the container.

image

benz0li commented 2 months ago

@legout Try https://github.com/b-data/jupyterlab-r-docker-stack#marimo on https://demo.jupyter.b-data.ch

Do not forget to restart the container. You can do so at https://demo.jupyter.b-data.ch/hub/home.

Cross reference:

legout commented 2 months ago

@benz0li Unfortunately it is not as simple :-)

I mounted a volume to /home/jovyan, to persist the user data, run the commands from here https://github.com/b-data/jupyterlab-r-docker-stack#marimo and restarted the container. No success.

The problem seems to be, which pip gives me /opt/conda/bin/pip and therefore marimo and jupyter-marimo-proxy is not installed persistent in /home/jovyan

benz0li commented 2 months ago

@legout I am not using the Jupyter docker stack, but b-data's/my own JupyterLab docker stacks:

  1. Multi-arch: linux/amd64, linux/arm64/v8
    :information_source: Runs on Apple M series using Docker Desktop.
  2. Base image: Debian instead of Ubuntu
    :information_source: CUDA-based images use Ubuntu.
  3. IDE: code-server next to JupyterLab
    :information_source: code-server = Code - OSS in the browser.
  4. Just Python – no Conda / Mamba

https://github.com/b-data/jupyterlab-python-docker-stack#similar-projects

legout commented 2 months ago

Thanks. I´ll give it a try!

legout commented 2 months ago

No success

This is what I did

  1. Started the container
docker run -it --rm \y
  -p 8888:8888 \
  -u root \
  -v "${PWD}/jupyterlab-jovyan":/home/jovyan \
  -e NB_UID=$(id -u) \
  -e NB_GID=$(id -g) \
  -e CHOWN_HOME=yes \
  -e CHOWN_HOME_OPTS='-R' \
   glcr.b-data.ch/jupyterlab/r/base
  1. In Jupyterlab, started a terminal
pip install marimo click
pip install git+https://github.com/b-data/jupyter-marimo-proxy.git@jupyterlab-docker-stack
  1. Restarted the container

There is still no marimo icon image

benz0li commented 2 months ago

For some reason, neither the original jupyter-marimo-proxy nor b-data's/my fork seem to work.

I will not investigate further, though.

legout commented 2 months ago

Now its working.

Basically, thats what I´ve done.

FROM quay.io/jupyter/base-notebook
...
RUN conda install jupyter-server-proxy jupyter-vscode-proxy jupyterlab-git marimo -y && \
    /opt/conda/bin/pip install --no-cache-dir jupyter-marimo-proxy
...
benz0li commented 2 months ago

@legout It works again on https://demo.jupyter.b-data.ch.

legout commented 2 months ago

What did you do to get it back working?

benz0li commented 2 months ago

What did you do to get it back working?

To get it working without an associated JupyterHub: https://github.com/b-data/jupyter-marimo-proxy/commit/378ccc1c29c7f3a8b6ea9200cb90849ad0b39276