summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/ipython/profile_default/ipython_config.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/ipython/profile_default/ipython_config.py b/.config/ipython/profile_default/ipython_config.py
new file mode 100644
index 0000000..13fc9c4
--- /dev/null
+++ b/.config/ipython/profile_default/ipython_config.py
@@ -0,0 +1,20 @@
+# Configuration file for ipython.
+
+c = get_config()
+
+# No newlines inbetween lines.
+c.TerminalInteractiveShell.separate_in = ''
+
+# Make IPython automatically call any callable object even if you didn't type
+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
+# it is not applied if there are no more arguments on the line, and '2' for
+# 'full' autocall, where all callable objects are automatically called (even if
+# no arguments are present).
+c.TerminalInteractiveShell.autocall = 1
+
+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
+# direct exit without any confirmation.
+c.TerminalInteractiveShell.confirm_exit = False
+