Skip to content

Instantly share code, notes, and snippets.

View cubercsl's full-sized avatar
🤔
Fishing

cubercsl cubercsl

🤔
Fishing
View GitHub Profile
@tanbro
tanbro / 单机多用户 JupyterLab 环境搭建.md
Last active April 28, 2024 13:58
单机多用户 JupyterLab 环境搭建

单机多用户 JupyterLab 环境搭建

概述

在这篇短文中,我们记录了如何在使用 [Ubuntu][] 1804 LTS 操作系统的单台服务器上,建立用户隔离的 [JupyterLab][] Web 环境。

目标是:

  • 操作系统的用户可以各自不受干扰的使用独立的 [JupyterLab][]
  • 各个用户的 [Conda][] 环境可以自动的出现在 [JupyterLab][] 的 Kernel 列表中
#!/bin/bash
# save as /root/del_user.sh
USERNAME=$1
if [[ -z "$USERNAME" ]]; then
echo "Please give me a username"
exit 1
fi
echo "This script will"