ipython
Table of Contents
- 1. ipython
- 1.1. IPython documentation
- 1.2. History length
- 1.3. Add new line (Emacs mode)
- 1.4. IPython con vim
- 1.5. Jupyter con vim
- 1.5.1. https://github.com/jupyter-vim/jupyter-vim
- 1.5.2. https://github.com/kassio/neoterm
- 1.5.3. https://github.com/voldikss/vim-floaterm
- 1.5.4. https://github.com/luk400/vim-jukit
- 1.5.5. Neovim workflow for machine learning / data scientist. Struggling with jupyter notebooks. : neovim
- 1.5.6. kiyoon/jupynium.nvim: Selenium-automated Jupyter Notebook that is synchronised with NeoVim in real-time.
- 1.5.7. benlubas/molten-nvim: A neovim plugin for interactively running code with the jupyter kernel. Fork of magma-nvim with improvements in image rendering, performance, and more
- 1.5.8. 3rd/image.nvim: 🖼️ Bringing images to Neovim.
- 1.6. Lanzar kernels (servidores)
- 1.7. Debugging en Python con Dap
- 1.8. Documentación de IPython
- 1.9. Conectarse con clientes
- 1.10. ipython extensions - Google Search
- 1.11. Hacer lo mismo que SPC h en IPython
- 1.12. Usar IPython como interfaz común a múltiples kernels
- 1.13. pymacs v2
- 1.14. Hacer una configuración de IPython al estilo de doom
- 1.15. GitHub - willmcgugan/rich: Rich is a Python library for rich text and beautiful formatting in the terminal.
- 1.16. Async Ipython
1. ipython
1.1. IPython documentation
1.2. History length
1.3. Add new line (Emacs mode)
Ctrl+O → Ctrl+N
1.4. IPython con vim
ipython --TerminalInteractiveShell.editing_mode=vi
https://stackoverflow.com/questions/10394302/how-do-i-use-vi-keys-in-ipython-under-nix
https://ipython.readthedocs.io/en/stable/config/details.html#keyboard-shortcuts → quizás se puede hacer algo aquí para meter copiado con p
Adding a new line now is <normal mode> o
1.4.1. prompt-toolkit/python-prompt-toolkit: Library for building powerful interactive command line applications in Python
Lo utiliza IPython por debajo
1.5. Jupyter con vim
1.5.1. https://github.com/jupyter-vim/jupyter-vim
A two-way integration between Vim and Jupyter. Develop code on a Jupyter notebooke without leaving the terminal. Send lines from Vim to a jupyter qtconsole
1.5.2. https://github.com/kassio/neoterm
Use the same terminal for everything. The main reason for this plugin is to reuse the terminal easily. All commands open a terminal if one does not already exist. REPL commands open a terminal and the proper REPL if not already opened.
1.5.4. https://github.com/luk400/vim-jukit
- Features
REPL plugin and Jupyter-Notebook alternative for (Neo)Vim
- Support neovim floatwin and vim8 popupwin
- Manage multiple terminal instances
- Customizable terminal window style
- Switch/preview floating terminal buffers using fuzzy-finder plugins such as denite.nvim or fzf, etc.
- Use with other external command-line tools(ranger, fzf, ripgrep etc.)
- Use as a custom task runner for asynctasks.vim or asyncrun.vim
- Support neovim floatwin and vim8 popupwin
1.6. Lanzar kernels (servidores)
ipython3 kernel
To connect another client to this kernel, use: --existing kernel-493545.json
jupyter kernel
[KernelApp] Starting kernel 'python3' [KernelApp] Connection file: /home/julian/.local/share/jupyter/runtime/kernel-4794e14e-da0f-4241-ba67-eed8409ad07a.json [KernelApp] To connect a client: --existing kernel-4794e14e-da0f-4241-ba67-eed8409ad07a.json
cpyvke-launch-ipython
1.7. Debugging en Python con Dap
https://github.com/jupyterlab/jupyterlab/issues/10996
beginning with version 6.0 ipykernel supports the debugger adapter protocol and uses debugpy underneath.
1.9. Conectarse con clientes
jupyter qtconsole --existing kernel-493545.json
jupyter console --existing kernel-493545.json
- Hay que hacer antes
pip install jupyter-console
- Hay que hacer antes
1.10. ipython extensions - Google Search
1.10.3. IPython Extensions Guide
1.10.3.1. Search results · PyPI
1.10.3.2. Extensions Index · ipython/ipython Wiki
1.11. Hacer lo mismo que SPC h en IPython
Con este atajo de teclado, abrir documentación de funciones con autocompletado
1.12. Usar IPython como interfaz común a múltiples kernels
IPython soporta la tira de lenguajes:
https://github.com/jupyter/jupyter/wiki/Jupyter-kernels
https://github.com/HeRoMo/jupyter-langs
Tiene sentido que se haga un estándar para usarlo en todas partes
https://ipython.readthedocs.io/en/stable/development/how_ipython_works.html
kassio/neoterm: Wrapper of some vim/neovim’s :terminal functions.
1.13. pymacs v2
1.15. GitHub - willmcgugan/rich: Rich is a Python library for rich text and beautiful formatting in the terminal.
https://github.com/willmcgugan/rich#rich-repl
Colores bonitos para todos los objetos de Python