Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JavaScriptDude/pretty_python

Repository files navigation

pretty_python

Standard Python Shim for IPython pretty library

See lib.pretty Docs for full api.

Only differnce to use this is to import as follows:

from pretty_python import pretty, pprint
d = dict(Foo=[1,2,3], Bar={'a':1, 'b':2, 'c':3})
print(f"my dict: {pretty(d)}")
# -or-
pprint(d)

If running within IPython / Jupyter Notebook, it will load the builtin pretty library, otherwise it will load this fork which removes IPython dependency

About

A Python library for pretty printing Python data structures

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /