| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa |
| informatica:software:jupyterlab [2020/11/08 17:11] – [Atajos de teclado] tempwin | informatica:software:jupyterlab [2025/10/17 13:21] (actual) – [JupyterLab] tempwin |
|---|
| ====== JupyterLab ====== | ====== JupyterLab ====== |
| |
| Aplicación web que crea enternos interactivos para programación, matemáticas y ciencia de datos. Soporta varios lenguajes mediante plugins ("kernels"), como Python, Ruby, Haskell, R, Scala y Julia. | Aplicación web que crea entornos interactivos para programación, matemáticas y ciencia de datos. Soporta varios lenguajes mediante plugins ("kernels"), como Python, Ruby, Haskell, R, Scala y Julia. |
| |
| * [[https://jupyter.org/|Web oficial]] | * [[https://jupyter.org/|Web oficial]] |
| |
| | {{ https://jupyterlab.readthedocs.io/en/stable/_images/jupyterlab.png |}} |
| ===== Instalación ===== | ===== Instalación ===== |
| |
| En Arch Linux, mediante el paquete ''jupyterlab''. Para el soporte de Python, el kernel se instala mediante ''python-ipykernel'' | En Arch Linux, mediante el paquete ''jupyterlab''. Para el soporte de Python, el kernel se instala mediante ''python-ipykernel'' |
| |
| | En otras distribuciones, si no existe paquete, es mejor instalarlo mediante pip: |
| | |
| | <code> |
| | pip install jupyterlab |
| | </code> |
| | |
| | ==== Docker ==== |
| | |
| | Podemos crear un contenedor con JupyterLab ejecutando: |
| | |
| | <code bash> |
| | docker run -it -p 8888:8888 quay.io/jupyter/base-notebook |
| | </code> |
| | |
| | Debemos mirar la salida por consola ya que nos indicará el //token// para poder acceder. |
| | |
| | Ejemplo: |
| | |
| | <code> |
| | (...) |
| | [I 2025-10-17 07:45:37.396 ServerApp] Jupyter Server 2.17.0 is running at: |
| | [I 2025-10-17 07:45:37.396 ServerApp] http://localhost:8888/lab?token=235bb0838b397ae155a3ac47bca86adfcabf99258e57b012 |
| | [I 2025-10-17 07:45:37.396 ServerApp] http://127.0.0.1:8888/lab?token=235bb0838b397ae155a3ac47bca86adfcabf99258e57b012 |
| | [I 2025-10-17 07:45:37.396 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). |
| | [C 2025-10-17 07:45:37.399 ServerApp] |
| | |
| | To access the server, open this file in a browser: |
| | file:///home/jovyan/.local/share/jupyter/runtime/jpserver-7-open.html |
| | Or copy and paste one of these URLs: |
| | http://localhost:8888/lab?token=235bb0838b397ae155a3ac47bca86adfcabf99258e57b012 |
| | http://127.0.0.1:8888/lab?token=235bb0838b397ae155a3ac47bca86adfcabf99258e57b012 |
| | </code> |
| ===== Uso ===== | ===== Uso ===== |
| |
| * ''Tab'': autocompletado | * ''Tab'': autocompletado |
| |
| Si nos posicionamos en los paréntesis de una función o método y pulsamos ''Shift'' + ''Tab'', nos aparecerá ayuda acerca de esa función. | Si nos posicionamos sobre una función o método y pulsamos ''Shift'' + ''Tab'', nos aparecerá ayuda acerca de lo que hace la función y cómo se utiliza. |
| ===== Recursos ===== | ===== Recursos ===== |
| |
| * [[https://stackoverflow.com/questions/50982686/what-is-the-difference-between-jupyter-notebook-and-jupyterlab|What is the difference between Jupyter Notebook and JupyterLab?]] | * [[https://stackoverflow.com/questions/50982686/what-is-the-difference-between-jupyter-notebook-and-jupyterlab|What is the difference between Jupyter Notebook and JupyterLab?]] |