Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Carriage Return and notebook cell output

Hi!

This code works different in python (console) and within sage's notebook:

>>> print 'foooo','\r','baar'
baaro

print 'foooo','\r','baar'
foooo baar

Is it possible somehow to use CR in notebook?

P.S. Initial problem was to create a progress bar, since no graphical bars found, I tried to use text-based bar, and now I met more generic issue this CR thing.

click to hide/show revision 2
Alternative variant added

Carriage Return and notebook cell output

Hi!

This code works different in python (console) and within sage's notebook:

>>> print 'foooo','\r','baar'
baaro

print 'foooo','\r','baar'
foooo baar

Is it possible somehow to use CR in notebook?

P.S. Initial problem was to create a progress bar, since no graphical bars found, I tried to use text-based bar, and now I met more generic issue this CR thing.

Variant 2: Perhaps instead of using CR it is possible to completely clear all cell's output?

Carriage Return and notebook cell output

Hi!

This code works different in python (console) and within sage's notebook:

>>> print 'foooo','\r','baar'
baaro

print 'foooo','\r','baar'
foooo baar

Is it possible somehow to use CR in notebook?

P.S. Initial problem was to create a progress bar, since no graphical bars found, I tried to use text-based bar, and now I met more generic issue this CR thing.

Variant 2: 2: Perhaps instead of using CR it is possible to completely clear all cell's output?

Carriage Return and notebook cell output

Hi!

This code works different in python (console) and within sage's notebook:

>>> print 'foooo','\r','baar'
baaro

print 'foooo','\r','baar'
foooo baar

Is it possible somehow to use CR in notebook?

P.S. Initial problem was to create a progress bar, since no graphical bars found, I tried to use text-based bar, and now I met more generic issue this CR thing.

Variant 2: Perhaps instead of using CR it is possible to completely clear all cell's output?