Skip to content

Instantly share code, notes, and snippets.

@fcollonval
fcollonval / Dockerfile
Last active May 25, 2025 12:10
JupyterHub with Gitea as authenticator
ARG BASE_IMAGE=jupyterhub/jupyterhub:latest
FROM $BASE_IMAGE
RUN apt-get update && apt-get --assume-yes install wget xz-utils libglib2.0-0 \
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdbus-1-3 libdrm2 libxkbcommon0 libxcomposite1 \
libxdamage1 libxfixes3 libxrandr2 libgbm1 libgtk-3-0 libpango-1.0-0 libcairo2 libgdk-pixbuf2.0-0 \
libatspi2.0-0 \
&& python3 -m pip install oauthenticator setuptools jupyterlab \
&& useradd --no-log-init -r -u 1000 king && mkdir -p /home/king && chown king /home/king \
&& useradd --no-log-init -r -u 999 jovyan && mkdir -p /home/jovyan && chown jovyan /home/jovyan \
@fcollonval
fcollonval / README.md
Last active February 8, 2023 13:56
JupyterLab with Jupyter Server >=2.0.0

JupyterLab with Jupyter Server >=2.0.0 on Binder

Binder

@fcollonval
fcollonval / Dockerfile
Last active October 5, 2022 13:14
test JupyterHub
ARG BASE_IMAGE=jupyterhub/jupyterhub:2
FROM $BASE_IMAGE
RUN python3 -m pip install -U setuptools pip \
&& python3 -m pip install -U jupyterlab \
&& useradd --no-log-init -r -u 999 jovyan && mkdir -p /home/jovyan && chown jovyan /home/jovyan \
&& useradd --no-log-init -r -u 998 marc && mkdir -p /home/marc && chown marc /home/marc
COPY ./jupyterhub_config.py /srv/jupyterhub/
@fcollonval
fcollonval / README.md
Last active August 1, 2022 07:02
JupyterLab custom cell toolbar item

JupyterLab extension adding a cell toolbar item

This add a checkbox cell toolbar item (using React).

image

The plugin.json file is the schema to be defined by the extension (should be placed in schema/plugin.json).

@fcollonval
fcollonval / README.md
Last active December 17, 2021 19:15
Jupytext in French

Demonstrate Jupytext translation in French

image

Test it online: Binder

The demonstration markdown file [World Population](./World Population.md) is copied from Jupytext.

@fcollonval
fcollonval / README.md
Last active September 5, 2022 08:05
JupyterLab custom menu

Customized JupyterLab

This is an example of JupyterLab UI customization.

Test it online: Binder

Requirement: JupyterLab >= 3.4

What is demonstrated?

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fcollonval
fcollonval / README.md
Last active February 2, 2023 12:36 — forked from jtpio/README.md
JupyterLab 3.6.0

JupyterLab 3.6.0 on Binder

Binder

Features

  • Real Time Collaboration enabled
  • File ID manager setup: jupyter_server_fileid.manager.LocalFileIdManager

You can access the server log by displaying ~/.jupyter-server-log.txt in a terminal.