The import is import pandas_market_calendars.
First let's see that it's available in the virtualenv:
me@me-ThinkPad-T470p:~/myprojct/bin$ source activate (myprojct) me@me-ThinkPad-T470p:~/myprojct/bin$ ipython Python 3.5.2 (default, Nov 23 2017, 16:37:01) Type 'copyright', 'credits' or 'license' for more information IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help. In [1]: In [1]: import pandas_market_calendars In [2]: quit() Good. Now I launch the jupyter notebook:
(myprojct) me@me-ThinkPad-T470p:~/myprojct/docs$ jupyter notebook unit_tests.ipynb and in that notebook, I have a line:
import pandas_market_calendars that gives:
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-686a3ec1e720> in <module>() ----> 1 import pandas_market_calendars ImportError: No module named 'pandas_market_calendars'