LinuxCommandLibrary

ipython3

TLDR

Start IPython shell

$ ipython3
copy
Run script in IPython
$ ipython3 [script.py]
copy
Start with specific profile
$ ipython3 --profile=[myprofile]
copy
Run in no-banner mode
$ ipython3 --no-banner
copy
Start Qt console
$ ipython3 qtconsole
copy
Start notebook server
$ jupyter notebook
copy

SYNOPSIS

ipython3 [options] [file] [args]

DESCRIPTION

IPython is an enhanced interactive Python shell. It provides syntax highlighting, tab completion, magic commands, shell integration, and rich media display.
IPython extends Python's REPL with features like history across sessions, object introspection, and system shell access. It's the kernel behind Jupyter notebooks.

PARAMETERS

--profile name

Use specific profile.
--no-banner
Don't show startup banner.
-i
Run in interactive mode after script.
-c command
Execute command.
--pdb
Enable automatic debugger on exceptions.
--matplotlib backend
Configure matplotlib backend.
qtconsole
Start Qt GUI console.
notebook
Start Jupyter notebook (deprecated, use jupyter).

MAGIC COMMANDS

$ %run script.py     Run Python file
%timeit expr       Time execution
%debug             Enter debugger
%history           Show history
%paste             Paste from clipboard
%cd                Change directory
!command           Run shell command
?object            Get help
??object           Get source code
copy

CAVEATS

Separate from standard Python. Some magic commands are IPython-specific. Jupyter notebooks recommended for notebook interface.

HISTORY

IPython was created by Fernando Pérez in 2001 to improve Python's interactive capabilities. It became the foundation for Jupyter, which generalized the notebook concept to multiple languages.

SEE ALSO

python3(1), jupyter(1), bpython(1)

Copied to clipboard