From 14f70d7bcd3297a06a5082625e717f61a6bd8f43 Mon Sep 17 00:00:00 2001 From: steff456 Date: Wed, 17 Jul 2019 15:10:14 -0500 Subject: [PATCH] fix ipython startup options --- spyder_kernels/console/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spyder_kernels/console/start.py b/spyder_kernels/console/start.py index 0c051dc6..60c04685 100644 --- a/spyder_kernels/console/start.py +++ b/spyder_kernels/console/start.py @@ -115,8 +115,8 @@ def kernel_config(): spy_cfg.IPKernelApp.exec_lines = [] # Clean terminal arguments input - clear_argv = "import sys;sys.argv = [''];del sys" - spy_cfg.IPKernelApp.exec_lines.append(clear_argv) + clear_argv = ['import sys', 'sys.argv = ['']', 'del sys'] + spy_cfg.IPKernelApp.exec_lines = clear_argv + spy_cfg.IPKernelApp.exec_lines # Load %autoreload magic spy_cfg.IPKernelApp.exec_lines.append(