fastice/GrIMPNotebooks

Difficulty loading grimpfunc

Closed this issue · 2 comments

Hi, thanks for your work on these modules.

I'm trying to run NSIDCLoginNotebook.ipynb, which I've just now cloned into a local directory. I've created the appropriate greenlandMapping environment, as per instructions. However, after conda activating the environment, and ensuring within Jupyter Lab that I'm in a kernel for greenlandMapping, I'm unable to execute through the unmodified cells of NSIDCLoginNotebook.ipynb.

At the first code cell, "Setup", I'm getting the error

ModuleNotFoundError                       Traceback (most recent call last)
Cell In [8], line 1
----> 1 import grimpfunc.NASALogin as NASALogin
      2 import panel
      3 import os

ModuleNotFoundError: No module named 'grimpfunc'

In the preceding markdown cell, the two markdown cells to "instructions" and "installation" include out-of-date, broken links.

Within my console (a mac), I'm able to see that apparently grimpfunc is actually intended to be installed, just as, e.g., numpy is.

(greenlandMapping) [TCB-MBP-5] anaconda3 $ conda list numpy
# packages in environment at /Users/timb/anaconda3/envs/greenlandMapping:
#
# Name                    Version                   Build  Channel
numpy                     1.23.4           py39hdfa1d0c_1    conda-forge
(greenlandMapping) [TCB-MBP-5] anaconda3 $ conda list grimp*
# packages in environment at /Users/timb/anaconda3/envs/greenlandMapping:
#
# Name                    Version                   Build  Channel
grimpfunc                 0.0.4                    pypi_0    pypi
grimpqgis                 0.0.1                    pypi_0    pypi
(greenlandMapping) [TCB-MBP-5] anaconda3 $

This problem persists even after attempting to reinstall grimpfunc via pip install git+https://github.com/fastice/grimpfunc.git@master , per https://github.com/fastice/GrIMPfunc.
The problem also persists when closing and reloading jupyter lab several times, and restarting the kernel several times.

Thanks for any tips you can offer!

Thanks Ian- Well, I'm embarrassed. I would have sworn that I'd followed your step A: python -m ipykernel install --user --name=greenlandMapping but apparently not. It's all now working as expected.

Thanks for maintaining all these notebooks and tutorials, including that for the IS2 hackweek (https://icesat-2.hackweek.io/tutorials/DataIntegration/dataintegration-2.html). They're awesome and it's very empowering to be able to draw on these tools so easily. Open data at its best.