How to make python interactive console based on blocks rather than lines
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I want my python interactive console in terminal to work like the one in pycharm or something like jupyter notebook but I can't find how.
For example when I do:
>>> def foo():
... print('Make it work nice')
...
>>>
And then I press up arrow I want to see something like this:
>>> def foo():
... print('Make it work nice')
...
Where I can edit both lines. but I get only this:
>>> print('Make it work nice')
So is it possible to make it work as I want and if not is there any extremely lightweight tool(something smaller than an IDE or Browser. something as heavy as VIM for example)
command-line python
add a comment |Â
up vote
0
down vote
favorite
I want my python interactive console in terminal to work like the one in pycharm or something like jupyter notebook but I can't find how.
For example when I do:
>>> def foo():
... print('Make it work nice')
...
>>>
And then I press up arrow I want to see something like this:
>>> def foo():
... print('Make it work nice')
...
Where I can edit both lines. but I get only this:
>>> print('Make it work nice')
So is it possible to make it work as I want and if not is there any extremely lightweight tool(something smaller than an IDE or Browser. something as heavy as VIM for example)
command-line python
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want my python interactive console in terminal to work like the one in pycharm or something like jupyter notebook but I can't find how.
For example when I do:
>>> def foo():
... print('Make it work nice')
...
>>>
And then I press up arrow I want to see something like this:
>>> def foo():
... print('Make it work nice')
...
Where I can edit both lines. but I get only this:
>>> print('Make it work nice')
So is it possible to make it work as I want and if not is there any extremely lightweight tool(something smaller than an IDE or Browser. something as heavy as VIM for example)
command-line python
I want my python interactive console in terminal to work like the one in pycharm or something like jupyter notebook but I can't find how.
For example when I do:
>>> def foo():
... print('Make it work nice')
...
>>>
And then I press up arrow I want to see something like this:
>>> def foo():
... print('Make it work nice')
...
Where I can edit both lines. but I get only this:
>>> print('Make it work nice')
So is it possible to make it work as I want and if not is there any extremely lightweight tool(something smaller than an IDE or Browser. something as heavy as VIM for example)
command-line python
command-line python
edited Feb 16 at 19:47
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
dessert
20k55795
20k55795
asked Feb 16 at 17:56
ladybug
31
31
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
IPython is the shell in Jupyter. You can install it with pip:
sudo pip3 install ipython
Note that IPython is also available in the Ubuntu repos, but it's a much older version.
add a comment |Â
up vote
0
down vote
Have a look at ptpython. It's not in the repositories but you can easily install it via pip3
.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
IPython is the shell in Jupyter. You can install it with pip:
sudo pip3 install ipython
Note that IPython is also available in the Ubuntu repos, but it's a much older version.
add a comment |Â
up vote
0
down vote
accepted
IPython is the shell in Jupyter. You can install it with pip:
sudo pip3 install ipython
Note that IPython is also available in the Ubuntu repos, but it's a much older version.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
IPython is the shell in Jupyter. You can install it with pip:
sudo pip3 install ipython
Note that IPython is also available in the Ubuntu repos, but it's a much older version.
IPython is the shell in Jupyter. You can install it with pip:
sudo pip3 install ipython
Note that IPython is also available in the Ubuntu repos, but it's a much older version.
answered Feb 16 at 19:14
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,25842256
7,25842256
add a comment |Â
add a comment |Â
up vote
0
down vote
Have a look at ptpython. It's not in the repositories but you can easily install it via pip3
.
add a comment |Â
up vote
0
down vote
Have a look at ptpython. It's not in the repositories but you can easily install it via pip3
.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Have a look at ptpython. It's not in the repositories but you can easily install it via pip3
.
Have a look at ptpython. It's not in the repositories but you can easily install it via pip3
.
edited Feb 16 at 19:22
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,25842256
7,25842256
answered Feb 16 at 18:21
Florian Diesch
63k16157176
63k16157176
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006862%2fhow-to-make-python-interactive-console-based-on-blocks-rather-than-lines%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password