Open Benjamin-Loison opened 6 months ago
In shell:
?
List of *magic* commands:
? - show this message
?X or X? - show docstring of X
??X or X?? - help(X)
cd - show current directory
cd X - change directory
ls - list current directory
who - list variables in current workspace
whos - list variables plus their class and representation
timeit X - times execution of command X
open X - open file X or the Python module that defines object X
run X - run file X
install - install a new package
update - update an installed package
remove - remove (i.e. uninstall) an installed package
uninstall - alias for remove
conda - manage packages using conda
pip - manage packages using pip
db X - debug commands
cls - clear screen
notebook - launch the Jupyter notebook
In code:
?
File "<tmp 2>", line 1
?
^
SyntaxError: invalid syntax
In shell:
cls
works fine.
In code:
cls
Traceback (most recent call last):
File "<tmp 2>", line 2, in <module>
cls
NameError: name 'cls' is not defined
Supports removing previously printed text by using the backspace char.
Source: https://pyzo.org/features.html
Related to the Stack Overflow question 517970.