File: disable-call-capture_repr.patch

package info (click to toggle)
sphinx-gallery 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,336 kB
  • sloc: python: 10,346; makefile: 216; lisp: 15; sh: 11; cpp: 9
file content (21 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Disable caller ids 'repr()' function
Author: Josenilson Ferreira da Silva <nilsonfsilva@hotmail.com>
Forwarded: not-needed
Last-Update: 2024-05-14
--- sphinx-gallery.orig/doc/conf.py
+++ sphinx-gallery/doc/conf.py
@@ -405,12 +405,12 @@
     "jupyterlite": {
         "notebook_modification_function": "sg_doc_build.notebook_modification_function",
     },
-    "show_memory": True,
+    "show_memory": False,
     "promote_jupyter_magic": False,
     "junit": os.path.join("sphinx-gallery", "junit-results.xml"),
     # capture raw HTML or, if not present, __repr__ of last expression in
     # each code block
-    "capture_repr": ("_repr_html_", "__repr__"),
+    "capture_repr": (),
     "matplotlib_animations": True,
     "image_srcset": ["2x"],
     "nested_sections": True,