>>" to "In[x] Out[x]"?" />
W
W
weranda2018-12-02 12:30:53
Python
weranda, 2018-12-02 12:30:53

How to change ">>>" to "In[x] Out[x]"?

Greetings
I noticed on the net that people somehow configured the console - instead of three arrows, a clear separation between input and output with separation between commands. Here is a screenshot: 5c03a639915a6860236171.png
How can this be done?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Kuts, 2018-12-02
@weranda

Start ipython

Python 2.7.12 (default, Dec 19 2016, 15:11:02) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 5.7.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: 1+1
Out[1]: 2

In [2]:

X
x67, 2018-12-02
@x67

Install anaconda.

A
Alexander, 2018-12-02
@sanya84

To simply change the sign of the invitation in the standard python console.

import sys
sys.ps1 = "*"
sys.ps2 = ">"

But this is more complicated)
In [1]:
Out[1]:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question