$ jupyterhub-singleuser --debug
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:174] Searching ['/home/jupyter-khoeflich', '/home/jupyter-khoeflich/.jupyter', '/home/jupyter-khoeflich/.local/etc/jupyter', '/opt/tljh/user/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:731] Looking for jupyter_config in /etc/jupyter
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:731] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:731] Looking for jupyter_config in /opt/tljh/user/etc/jupyter
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:731] Looking for jupyter_config in /home/jupyter-khoeflich/.local/etc/jupyter
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:731] Looking for jupyter_config in /home/jupyter-khoeflich/.jupyter
[D 2022-03-16 10:13:11.371 SingleUserNotebookApp application:731] Looking for jupyter_config i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cdsapi | |
import multiprocessing | |
client = cdsapi.Client(url='xxx',key='xxx:xxx') | |
def cdsapi_worker(dataset): | |
result = client.retrieve('reanalysis-era5-single-levels', dataset) | |
result.download(dataset['file_name']) | |
def single_dataset(calendar_year, file_prefix): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uninstall kernel. | |
# rm -rf ${HOME}/.local/share/jupyter/kernels/my-pykernel/ | |
# rm -rf ${HOME}/my-pykernel/ | |
# Specify a few targets. | |
if [[ -f environment.yaml ]]; then |
Remote machine,
$ ssh user@host
$ mkdir -p $HOME/vscodeserver
$ cd $HOME/vscodeserver
$ bash install.sh
$ bash start.sh
c773621a-f86f-4f44-99a8-ef149521765a
[2022-04-14T10:41:07.120Z] info code-server 4.2.0 693b1fac04524bb0e0cfbb93afc85702263329bb
Using liascript PDF exporter,
$ docker run -it -v $PWD:/things ubuntu:22.04 bash
$ apt update
$ apt install wget xz-utils python3
$ wget --quiet https://nodejs.org/download/release/v14.20.1/node-v14.20.1-linux-x64.tar.xz
$ mkdir -p /usr/local/lib/
$ tar xf node-v14.20.1-linux-x64.tar.xz -C /usr/local/lib/
$ export PATH=/usr/local/lib/node-v14.20.1-linux-x64/bin:$PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:19-bullseye as vscodebundler | |
RUN npm install -g typescript esbuild vsce | |
RUN git clone https://github.com/andre-dietrich/liascript-preview-vscode-web | |
RUN cd liascript-preview-vscode-web && npm install && vsce package && ls | |
FROM codercom/code-server:4.8.3-bullseye | |
COPY --from=vscodebundler /liascript-preview-vscode-web/liascript-preview-web-0.2.1.vsix / | |
RUN code-server --install-extension /liascript-preview-web-0.2.1.vsix |