Ask Your Question
0

Print function in notebook not recognizing backspace character

asked 4 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

nbruin gravatar image

Looks like this may have been fixed upstream:

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

Preview: (hide)
link

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: 4 years ago

Seen: 315 times

Last updated: Jun 17 '20