https://github.com/petercorke/ipython-client
Notes about ipython backend and client
https://github.com/petercorke/ipython-client
Last synced: about 1 month ago
JSON representation
Notes about ipython backend and client
- Host: GitHub
- URL: https://github.com/petercorke/ipython-client
- Owner: petercorke
- License: mit
- Created: 2022-01-26T02:12:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T05:17:19.000Z (over 3 years ago)
- Last Synced: 2025-02-01T08:45:36.541Z (3 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipython-client
Notes about ipython backend and clientOn a Mac, ipython uses the default backend `MacOS`
Spawning a server `ipython kernel` and connecting, the backend is still `MacOS`
Connecting via ipython client, code or Jupyter, this changes to
`module://matplotlib_inline.backend_inline`The Jupyter commands:
* `%notebook inline` -> `backend=module://matplotlib_inline.backend_inline`, low res embedded PNG image
* `%notebook notebook` -> `backend=nbAgg`, live figure widget with buttons, probably related to ipython.Displaysby default it is `%notebook inline`
```
% ipython kernel
NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use:
--existing kernel-71888.json
```
```
% ipython --existing kernel-71888.json
```Other backends
https://medium.com/@Med1um1/using-matplotlib-in-jupyter-notebooks-comparing-methods-and-some-tips-python-c38e85b40ba1
%notebook widget
seems to be the same as %notebook ipympl
%matplotlib --list
On Colab is agg by default
Each cell ends with an implicit show. The current axes is cleared, plt.gca()