Closed navidcy closed 3 years ago
I installed the cookbook on my own environment
conda install -c coecms cosima-cookbook
but then when I called
import cosima_cookbook as cc
I got
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-5-42ac39264331> in <module> ----> 1 import cosima_cookbook as cc 2 import xarray as xr 3 # import xrft 4 import cftime 5 import matplotlib /g/data/v45/nc3020/conda/envs/myxesfm/lib/python3.8/site-packages/cosima_cookbook/__init__.py in <module> 8 from . import database 9 from . import querying ---> 10 from . import explore 11 12 try: /g/data/v45/nc3020/conda/envs/myxesfm/lib/python3.8/site-packages/cosima_cookbook/explore.py in <module> 2 import warnings 3 ----> 4 from ipywidgets import HTML, Button, VBox, HBox, Label, Layout, Select 5 from ipywidgets import SelectMultiple, Tab, Text, Textarea, Checkbox 6 from ipywidgets import SelectionRangeSlider, Dropdown ModuleNotFoundError: No module named 'ipywidgets'
Installing ipywidgets manually alleviated the issue. But shouldn't ipywidgets be installed as a dependency?
ipywidgets
I guess I didn't add it as a dependency. Thanks for pointing it out @navidcy
I installed the cookbook on my own environment
but then when I called
I got
Installing
ipywidgets
manually alleviated the issue. But shouldn'tipywidgets
be installed as a dependency?