2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-10 07:11:00 +00:00

doc jupyter updates

This commit is contained in:
Davide Bortolami 2020-04-17 03:26:16 +01:00
parent 85a824753b
commit 5f823fe37c

View File

@ -216,24 +216,19 @@ You can now login with user `Administrator` and the password you choose when cre
## Developing using the interactive console ## Developing using the interactive console
You can launch the interactive shell console with: You can launch a simple interactive shell console in the terminal with:
```shell ```shell
bench console bench console
``` ```
To work with a more advanced interactive environment that supports full Jupyter Notebooks you can run JupyterLab inside the Python Venv, which will already be activated. More likely, you may want to launch VSCoode interactive console based on Jupyter kernel.
First you'll need to foward port 8090 from your debug container. Launch VSCode command palette (cmd+shift+p or ctrl+shift+p), run the command `Forward a port` and type port `8090`. Launch VSCode command palette (cmd+shift+p or ctrl+shift+p), run the command `Python: Select interpreter to start Jupyter server` and select `/workspace/development/frappe-bench/env/bin/python`.
You can then install and launch jupyterlab appropriately: Then, run the commmand `Python: Show Python interactive windows` from the VSCode command palette.
```shell Replace `my.site` with your site and run the following code in a Jupyter cell:
pip install jupyterlab
jupyter lab --ip=0.0.0.0 --no-browser --port=8090
```
Then replace `my.site` with your site and run the following code in a Jupyter cell:
```python ```python
import frappe import frappe