Benjamin-Loison / pyzo

Python to the people
https://pyzo.org
Other
0 stars 0 forks source link

Command to clear `Shell`? #27

Open Benjamin-Loison opened 6 months ago

Benjamin-Loison commented 6 months ago

Related to the Stack Overflow question 517970.

Benjamin-Loison commented 4 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
Benjamin-Loison commented 3 months ago

Supports removing previously printed text by using the backspace char.

Source: https://pyzo.org/features.html