COSIMA / cosima-cookbook

Framework for indexing and querying ocean-sea ice model output.
https://cosima-recipes.readthedocs.io/en/latest/
Apache License 2.0
58 stars 25 forks source link

Explorer assumes that users have `import cosima_cookbook as cc` #260

Closed navidcy closed 3 years ago

navidcy commented 3 years ago

I noticed that Explorer spits out suggestions to users but it assumes that users have imported the cookbook as cc. E.g.,

https://github.com/COSIMA/cosima-cookbook/blob/bd990138e5c401d0ccf357f5aaeadc6b624e0988/cosima_cookbook/explore.py#L1048

aidanheerdegen commented 3 years ago

I guess.

Do we ever import it any other way?

Other projects routinely do this also, e.g. xarray:xr, numpy: np, maplotlib.pyplot: plt, pandas: pd

navidcy commented 3 years ago

Well any user can import it as they like!

But I see what you say. Let's not bother.