mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -19,8 +19,8 @@ When you log in & start your server, by default the URL in your browser
|
|||||||
will be something like `/user/<username>/tree`. The `/tree` is what
|
will be something like `/user/<username>/tree`. The `/tree` is what
|
||||||
tells the notebook server to give you the classic notebook interface.
|
tells the notebook server to give you the classic notebook interface.
|
||||||
|
|
||||||
- **For the JupyterLab interface**: change `/tree` to `/lab`.
|
- **For the JupyterLab interface**: change `/tree` to `/lab`.
|
||||||
- **For the nteract interface**: change `/tree` to `/nteract`
|
- **For the nteract interface**: change `/tree` to `/nteract`
|
||||||
|
|
||||||
You can play around with them and see what fits your use cases best.
|
You can play around with them and see what fits your use cases best.
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
# Configure resources available to users
|
# Configure resources available to users
|
||||||
|
|
||||||
To configure the resources that are available to your users (such as
|
To configure the resources that are available to your users (such as
|
||||||
RAM, CPU and Disk Space), see the section [](#tljh-set-user-limits).
|
RAM, CPU and Disk Space), see the section [](#tljh-set-user-limits).
|
||||||
For information on **resizing** the environment available to users *after* you\'ve created
|
For information on **resizing** the environment available to users _after_ you\'ve created
|
||||||
your JupyterHub, see [](#howto-admin-resize).
|
your JupyterHub, see [](#howto-admin-resize).
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ can install packages easily.
|
|||||||
|
|
||||||
(howto/user-env/user-environment-pip)=
|
(howto/user-env/user-environment-pip)=
|
||||||
|
|
||||||
## Installing pip packages
|
## Installing pip packages
|
||||||
|
|
||||||
[pip](https://pypi.org/project/pip/) is the recommended tool for
|
[pip](https://pypi.org/project/pip/) is the recommended tool for
|
||||||
installing packages in Python from the [Python Packaging Index
|
installing packages in Python from the [Python Packaging Index
|
||||||
@@ -41,7 +41,7 @@ now, so a lot of what you need is going to be there!
|
|||||||
|
|
||||||
(howto/user-env/user-environment-conda)=
|
(howto/user-env/user-environment-conda)=
|
||||||
|
|
||||||
## Installing conda packages
|
## Installing conda packages
|
||||||
|
|
||||||
Conda lets you install new languages (such as new versions of python,
|
Conda lets you install new languages (such as new versions of python,
|
||||||
node, R, etc) as well as packages in those languages. For lots of
|
node, R, etc) as well as packages in those languages. For lots of
|
||||||
@@ -76,7 +76,7 @@ repository of conda packages.
|
|||||||
|
|
||||||
(howto/user-env/user-environment-apt)=
|
(howto/user-env/user-environment-apt)=
|
||||||
|
|
||||||
## Installing apt packages
|
## Installing apt packages
|
||||||
|
|
||||||
[apt](https://help.ubuntu.com/lts/serverguide/apt.html.en) is the
|
[apt](https://help.ubuntu.com/lts/serverguide/apt.html.en) is the
|
||||||
official package manager for the [Ubuntu Linux
|
official package manager for the [Ubuntu Linux
|
||||||
@@ -167,48 +167,48 @@ miniconda 4.5.4, which meant a Python 3.6 environment.
|
|||||||
|
|
||||||
To upgrade the Python version of the user environment, one can:
|
To upgrade the Python version of the user environment, one can:
|
||||||
|
|
||||||
- **Start fresh on a machine that doesn\'t have TLJH already
|
- **Start fresh on a machine that doesn\'t have TLJH already
|
||||||
installed.**
|
installed.**
|
||||||
|
|
||||||
See the [](#install-installing) section about how to install TLJH.
|
See the [](#install-installing) section about how to install TLJH.
|
||||||
|
|
||||||
- **Upgrade Python manually.**
|
- **Upgrade Python manually.**
|
||||||
|
|
||||||
Because upgrading Python for existing installs can break packages
|
Because upgrading Python for existing installs can break packages
|
||||||
already installed under the old Python, upgrading your current TLJH
|
already installed under the old Python, upgrading your current TLJH
|
||||||
installation, will NOT upgrade the Python version of the user
|
installation, will NOT upgrade the Python version of the user
|
||||||
environment, but you may do so manually.
|
environment, but you may do so manually.
|
||||||
|
|
||||||
**Steps:**
|
**Steps:**
|
||||||
|
|
||||||
1. Activate the user environment, if using ssh. If the terminal was
|
1. Activate the user environment, if using ssh. If the terminal was
|
||||||
started with JupyterHub, this step can be skipped:
|
started with JupyterHub, this step can be skipped:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source /opt/tljh/user/bin/activate
|
source /opt/tljh/user/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Get the list of currently installed pip packages (so you can
|
2. Get the list of currently installed pip packages (so you can
|
||||||
later install them under the new Python):
|
later install them under the new Python):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip freeze > pip_pkgs.txt
|
pip freeze > pip_pkgs.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Update all conda installed packages in the environment:
|
3. Update all conda installed packages in the environment:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo PATH=${PATH} conda update --all
|
sudo PATH=${PATH} conda update --all
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Update Python version:
|
4. Update Python version:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo PATH=${PATH} conda install python=3.7
|
sudo PATH=${PATH} conda install python=3.7
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Install the pip packages previously saved:
|
5. Install the pip packages previously saved:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r pip_pkgs.txt
|
pip install -r pip_pkgs.txt
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user