Ask Your Question
0

Print function in notebook not recognizing backspace character

asked 2020-06-16 19:41:18 +0100

Robert Bell gravatar image

The following gives different output in SageMath 9.1 in notebook (Jupyter) versus SageMath 9.1 in a terminal session. The terminal agrees with my local installation of Python 3.7 and give the (expected) output.

print("test\b\b\brun")

The Jupyter notebook cell returns "tesrun". The others return "trun".

Maybe some weird bug?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-06-17 01:10:37 +0100

nbruin gravatar image

Looks like this may have been fixed upstream:

https://github.com/jupyterlab/jupyter...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-06-16 19:41:18 +0100

Seen: 291 times

Last updated: Jun 17 '20