diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 7d26c33..056469f 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -223,7 +223,7 @@ class IPythonNotebookApp(BaseIPythonApplication): swallow_next = False continue if a.startswith('-'): - split = a.lstrip('-').split('=')[0] + split = a.lstrip('-').split('=') alias = split[0] if alias in notebook_aliases: self.kernel_argv.remove(a) diff --git a/IPython/frontend/qt/console/qtconsoleapp.py b/IPython/frontend/qt/console/qtconsoleapp.py index eb26bfe..50c5af4 100644 --- a/IPython/frontend/qt/console/qtconsoleapp.py +++ b/IPython/frontend/qt/console/qtconsoleapp.py @@ -342,7 +342,7 @@ class IPythonQtConsoleApp(BaseIPythonApplication): swallow_next = False continue if a.startswith('-'): - split = a.lstrip('-').split('=')[0] + split = a.lstrip('-').split('=') alias = split[0] if alias in qt_aliases: self.kernel_argv.remove(a)