[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/comint-mime c06e0cf6c3 1/2: Mention Matplotlib support
From: |
ELPA Syncer |
Subject: |
[elpa] externals/comint-mime c06e0cf6c3 1/2: Mention Matplotlib support |
Date: |
Sat, 22 Apr 2023 03:57:32 -0400 (EDT) |
branch: externals/comint-mime
commit c06e0cf6c359576f13804c9fa6d788bbe80b80e0
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Mention Matplotlib support
---
README.org | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/README.org b/README.org
index cc97648275..1f302d47fe 100644
--- a/README.org
+++ b/README.org
@@ -15,7 +15,7 @@ Python shell. However, it does more than that.
First, it is not constrained to graphics, and can display other "MIME
attachments" such as HTML and LaTeX content. In fact, the Python
backend of the package implements IPython's
[[https://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display][rich
display interface]]. A
-use-case beyond the displaying of graphics would be to render
+use-case beyond the displaying of graphics is to render
dataframes as HTML tables; this opens up the possibility of
typographical improvements over the usual pure-text
representation. You can also easily define rich representations for
@@ -43,9 +43,9 @@ function to the appropriate mode hook:
(add-hook 'inferior-python-mode-hook 'comint-mime-setup)
#+end_src
-Note that for Python it is important to use the IPython
-interpreter. It can be configured to have the same look-and-feel as
-the classic =python= program as follows.
+For Python it is recommended to use the IPython interpreter. It can
+be configured to have the same look-and-feel as the classic =python=
+program as follows.
#+begin_src elisp
(when (executable-find "ipython3")
@@ -53,6 +53,10 @@ the classic =python= program as follows.
python-shell-interpreter-args "--simple-prompt --classic"))
#+end_src
+If using the regular =python= interpreter, only Matplotlib figures are
+supported, and you need to call =plt.show()= and =plt.close()=
+manually to display and create new figures.
+
** Extending
To add support for new MIME types, see =comint-mime-renderer-alist=.
@@ -84,9 +88,7 @@ using a temporary file for large data transfers.
** Todos
-- It should be possible to support at least Matplotlib in the standard
- Python interpreter.
-- Improve the HTML rendering for numeric tables
+- Improve the HTML rendering of numeric tables
** Contributing