Skip to content

Commit 4371d72

Browse files
committed
Automate Windows Jupyter config
1 parent 4a2ecae commit 4371d72

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

_partials/es/win_jupyter.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,7 @@ jupyter notebook --generate-config
1111
Ahora edita el archivo de configuración de Jupyter generado:
1212

1313
``` bash
14-
<CODE_EDITOR_CMD> $HOME/.jupyter/jupyter_notebook_config.py
15-
```
16-
17-
Localiza la siguiente línea en el archivo de configuración:
18-
19-
``` python
20-
# c.ServerApp.use_redirect_file = True
21-
```
22-
23-
Y reemplázala por éste **precisamente** 👇 (incluyendo la eliminación del símbolo `#`)
24-
25-
``` python
26-
c.ServerApp.use_redirect_file = False
14+
sed -i.backup 's/# c.ServerApp.use_redirect_file = True/c.ServerApp.use_redirect_file = False/' ~/.jupyter/jupyter_notebook_config.py
2715
```
2816

2917
Intenta usar Jupyter:

_partials/win_jupyter.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,7 @@ jupyter notebook --generate-config
1010
We will now edit the generated Jupyter configuration file:
1111

1212
``` bash
13-
<CODE_EDITOR_CMD> $HOME/.jupyter/jupyter_notebook_config.py
14-
```
15-
16-
Locate the following line in the configuration file:
17-
18-
``` python
19-
# c.ServerApp.use_redirect_file = True
20-
```
21-
22-
And replace it with this one **precisely** 👇 (including removing the `#` symbol)
23-
24-
``` python
25-
c.ServerApp.use_redirect_file = False
13+
sed -i.backup 's/# c.ServerApp.use_redirect_file = True/c.ServerApp.use_redirect_file = False/' ~/.jupyter/jupyter_notebook_config.py
2614
```
2715

2816
Let's try to run Jupyter:

0 commit comments

Comments
 (0)