Skip to content

Enhancement: Render answers more nicely #158

Open
@ericmjl

Description

@ericmjl

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions