File: ipython.sh

package info (click to toggle)
ipython 5.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,548 kB
  • sloc: python: 34,422; makefile: 174; sh: 143
file content (11 lines) | stat: -rwxr-xr-x 299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#! /bin/sh

VERSION=""

if [ ! -f /usr/bin/python$VERSION ]
then
	echo "Please install the python$VERSION package." >&2
	exit 1
else
	exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/ipython$VERSION'; from IPython.terminal.ipapp import launch_new_instance; launch_new_instance()" "$@"
fi