Skip to content

quantity support proper usage #42

@douglowe

Description

@douglowe

In the units and quantities lesson we try to use quantity_support. I've read the documentation again, and we now need to use this with 'with' syntax:

with quantity_support():
    plt.plot(angles.to(u.rad), np.sin(angles))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions