We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895aa06 commit f77177cCopy full SHA for f77177c
ptpython/entry_points/run_ptipython.py
@@ -20,7 +20,7 @@
20
import sys
21
22
23
-def run():
+def run(user_ns=None):
24
a = docopt.docopt(__doc__)
25
26
vi_mode = bool(a['--vi'])
@@ -55,7 +55,8 @@ def run():
55
# Create an empty namespace for this interactive shell. (If we don't do
56
# that, all the variables from this function will become available in
57
# the IPython shell.)
58
- user_ns = {}
+ if user_ns is None:
59
+ user_ns = {}
60
61
# Startup path
62
startup_paths = []
0 commit comments