emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/drepl 69447abca2: Simplify IPython initialization comma


From: ELPA Syncer
Subject: [elpa] externals/drepl 69447abca2: Simplify IPython initialization command
Date: Sat, 10 Aug 2024 03:57:56 -0400 (EDT)

branch: externals/drepl
commit 69447abca2a62201eab2c72b18da8e871dd39782
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Simplify IPython initialization command
---
 drepl-ipython.el | 3 +--
 drepl-ipython.py | 4 ++++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drepl-ipython.el b/drepl-ipython.el
index 3d3e559565..3c702c7eac 100644
--- a/drepl-ipython.el
+++ b/drepl-ipython.el
@@ -62,8 +62,7 @@ substring \"{}\" is replaced by the execution count."
 (drepl--define drepl-ipython :display-name "IPython")
 
 (cl-defmethod drepl--command ((_ drepl-ipython))
-  `(,python-interpreter "-c"
-    "import sys; exec(''.join(sys.stdin)); Drepl.instance().mainloop()"))
+  `(,python-interpreter "-c" "import sys; exec(''.join(sys.stdin))"))
 
 (cl-defmethod drepl--init ((repl drepl-ipython))
   (cl-call-next-method repl)
diff --git a/drepl-ipython.py b/drepl-ipython.py
index 2ada918f16..d53c7dd7b5 100644
--- a/drepl-ipython.py
+++ b/drepl-ipython.py
@@ -193,3 +193,7 @@ class Drepl(InteractiveShell):
         if prompts:
             sys.ps1, sys.ps2, sys.ps3, self.separate_in, self.separate_out = 
prompts
         sendmsg(id=id)
+
+
+if __name__ == "__main__":
+    Drepl.instance().mainloop()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]