Skip to content

Commit

Permalink
Automate Windows Jupyter config
Browse files Browse the repository at this point in the history
  • Loading branch information
julesvanrie committed Mar 7, 2025
1 parent 22b140c commit 2a30644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
14 changes: 1 addition & 13 deletions _partials/es/win_jupyter.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,7 @@ jupyter notebook --generate-config
Ahora edita el archivo de configuración de Jupyter generado:

``` bash
<CODE_EDITOR_CMD> $HOME/.jupyter/jupyter_notebook_config.py
```

Localiza la siguiente línea en el archivo de configuración:

``` python
# c.ServerApp.use_redirect_file = True
```

Y reemplázala por éste **precisamente** 👇 (incluyendo la eliminación del símbolo `#`)

``` python
c.ServerApp.use_redirect_file = False
sed -i.backup 's/# c.ServerApp.use_redirect_file = True/c.ServerApp.use_redirect_file = False/' ~/.jupyter/jupyter_notebook_config.py
```

Intenta usar Jupyter:
Expand Down
14 changes: 1 addition & 13 deletions _partials/win_jupyter.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,7 @@ jupyter notebook --generate-config
We will now edit the generated Jupyter configuration file:

``` bash
<CODE_EDITOR_CMD> $HOME/.jupyter/jupyter_notebook_config.py
```

Locate the following line in the configuration file:

``` python
# c.ServerApp.use_redirect_file = True
```

And replace it with this one **precisely** 👇 (including removing the `#` symbol)

``` python
c.ServerApp.use_redirect_file = False
sed -i.backup 's/# c.ServerApp.use_redirect_file = True/c.ServerApp.use_redirect_file = False/' ~/.jupyter/jupyter_notebook_config.py
```

Let's try to run Jupyter:
Expand Down

0 comments on commit 2a30644

Please sign in to comment.