mirror of
https://github.com/YunoHost-Apps/jupyterlab_ynh.git
synced 2024-09-03 19:26:35 +02:00
Adding update_config_files.md
This commit is contained in:
parent
7bc90952cb
commit
6587123f01
3 changed files with 35 additions and 5 deletions
|
@ -873,4 +873,4 @@ c.NotebookApp.terminals_enabled = bool(__ENABLE_TERMINAL__)
|
||||||
## The websocket url of the Kernel or Enterprise Gateway server. If not
|
## The websocket url of the Kernel or Enterprise Gateway server. If not
|
||||||
# provided, this value will correspond to the value of the Gateway url with 'ws'
|
# provided, this value will correspond to the value of the Gateway url with 'ws'
|
||||||
# in place of 'http'. (JUPYTER_GATEWAY_WS_URL env var)
|
# in place of 'http'. (JUPYTER_GATEWAY_WS_URL env var)
|
||||||
#c.GatewayClient.ws_url = None
|
#c.GatewayClient.ws_url = None
|
||||||
|
|
|
@ -91,9 +91,9 @@
|
||||||
# e.g. `c.JupyterHub.authenticator_class = 'pam'`
|
# e.g. `c.JupyterHub.authenticator_class = 'pam'`
|
||||||
#
|
#
|
||||||
# Currently installed:
|
# Currently installed:
|
||||||
# - dummy: jupyterhub.auth.DummyAuthenticator
|
|
||||||
# - pam: jupyterhub.auth.PAMAuthenticator
|
|
||||||
# - default: jupyterhub.auth.PAMAuthenticator
|
# - default: jupyterhub.auth.PAMAuthenticator
|
||||||
|
# - pam: jupyterhub.auth.PAMAuthenticator
|
||||||
|
# - dummy: jupyterhub.auth.DummyAuthenticator
|
||||||
c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
|
c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
|
||||||
|
|
||||||
## The base URL of the entire application.
|
## The base URL of the entire application.
|
||||||
|
@ -108,7 +108,7 @@ c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
|
||||||
## The public facing URL of the whole JupyterHub application.
|
## The public facing URL of the whole JupyterHub application.
|
||||||
#
|
#
|
||||||
# This is the address on which the proxy will bind. Sets protocol, ip, base_url
|
# This is the address on which the proxy will bind. Sets protocol, ip, base_url
|
||||||
c.JupyterHub.bind_url = 'http://:__PORT____PATH__'
|
#c.JupyterHub.bind_url = 'http://:8000'
|
||||||
|
|
||||||
## Whether to shutdown the proxy when the Hub shuts down.
|
## Whether to shutdown the proxy when the Hub shuts down.
|
||||||
#
|
#
|
||||||
|
@ -466,8 +466,8 @@ c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:__PORT_HTTP_PROXY__'
|
||||||
# e.g. `c.JupyterHub.spawner_class = 'localprocess'`
|
# e.g. `c.JupyterHub.spawner_class = 'localprocess'`
|
||||||
#
|
#
|
||||||
# Currently installed:
|
# Currently installed:
|
||||||
# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner
|
|
||||||
# - default: jupyterhub.spawner.LocalProcessSpawner
|
# - default: jupyterhub.spawner.LocalProcessSpawner
|
||||||
|
# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner
|
||||||
# - localprocess: jupyterhub.spawner.LocalProcessSpawner
|
# - localprocess: jupyterhub.spawner.LocalProcessSpawner
|
||||||
#c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner'
|
#c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner'
|
||||||
|
|
||||||
|
|
30
update_config_files.md
Normal file
30
update_config_files.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Updating configuration files
|
||||||
|
|
||||||
|
Install the new version of the app with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/jupyterlab_ynh/tree/testing
|
||||||
|
```
|
||||||
|
|
||||||
|
Navigate to the installation path (`/opt/jupyterlab` by default), and run :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pipenv shell
|
||||||
|
```
|
||||||
|
|
||||||
|
You are now in the virtual environment of jupyterlab. You can execute these two commands:
|
||||||
|
|
||||||
|
- To generate the `jupyterhub_config.py` file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
jupyterhub --generate-config
|
||||||
|
```
|
||||||
|
|
||||||
|
- To generate the `jupyter_notebook_config.py` file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
jupyter notebook --generate-config
|
||||||
|
cp $HOME/.jupyter/jupyter_notebook_config.py ./
|
||||||
|
```
|
||||||
|
|
||||||
|
You can now update the old template files with the new one.
|
Loading…
Reference in a new issue