Ask Your Question
0

Print function in notebook not recognizing backspace character

asked 2020-06-16 12:41:18 -0500

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-16 18:10:37 -0500

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 12:41:18 -0500

Seen: 88 times

Last updated: Jun 16