Skip to content

quantity support proper usage #42

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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