Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Render answers more nicely #158

Open
ericmjl opened this issue Jul 15, 2020 · 0 comments
Open

Enhancement: Render answers more nicely #158

ericmjl opened this issue Jul 15, 2020 · 0 comments
Labels

Comments

@ericmjl
Copy link
Owner

ericmjl commented Jul 15, 2020

This is a simple fix.

Instead of:

from nams.solutions import some_module
from inspect import getsource

print(getsource(some_module))

We do:

from nams.solutions import some_module

some_module??

This will render the outputs with colouring done right (at least in the notebooks)!

That said, I could be wrong, and it might instead break the LeanPub outputs (though I've never tried).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant