Browse Source

fix(python): add support for cli args (#12159)

Gautam krishna R 1 year ago
parent
commit
11b0ea33d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/python/python.plugin.zsh

+ 1 - 1
plugins/python/python.plugin.zsh

@@ -44,7 +44,7 @@ function pyuserpaths() {
 alias pygrep='grep -nr --include="*.py"'
 
 # Run proper IPython regarding current virtualenv (if any)
-alias ipython="python3 -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"
+alias ipython='python3 -c "import IPython, sys; sys.exit(IPython.start_ipython())"'
 
 # Share local directory as a HTTP server
 alias pyserver="python3 -m http.server"