How to make python interactive console based on blocks rather than lines

 Clash Royale CLAN TAG#URR8PPP
Clash Royale CLAN TAG#URR8PPP 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


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


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


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