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.
This commit is contained in:
AntonVucinic 2022-07-28 11:45:20 +02:00 committed by GitHub
commit d563720dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"