From d563720dfaa5d8b6f3916fa173036a2d5567ca76 Mon Sep 17 00:00:00 2001 From: AntonVucinic <64925492+AntonVucinic@users.noreply.github.com> Date: Thu, 28 Jul 2022 11:45:20 +0200 Subject: [PATCH] refactor(python): refactor ipython alias refactor ipython alias to use module option instead of code option. This is a simpler aproach that will also give a more concise and informative error message when ipython isn't installed in the current env. --- plugins/python/python.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index 2fbb59577..6e70f1a62 100644 --- a/plugins/python/python.plugin.zsh +++ b/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 -m IPython' # Share local directory as a HTTP server alias pyserver="python3 -m http.server"