简体   繁体   中英

iPython documentation output is incorrectly formatted

This is a strange issue with ipython that I'm experiencing in my new machine. Whenever I try to print documentation, it comes as such: 在此处输入图片说明

Rather than a neatly formatted output. Any idea on how to fix it?

Try print ing it

print plt.scatter.__doc__

It's simply returning the underlying string representation, so if you want it to format, print should do it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM