nbdev-numpy

raw JSON →
0.0.2386 verified Fri May 01 auth: no python

nbdev-numpy provides nbdev documentation lookup for numpy functions and classes. It is part of the nbdev ecosystem, enabling automatic linking to numpy docs from Jupyter notebooks. Current version 0.0.2386, updated frequently.

pip install nbdev-numpy
error ModuleNotFoundError: No module named 'nbdev-numpy'
cause Attempting to import using the package name with hyphen, but Python modules use underscores.
fix
Change import to: from nbdev_numpy import NumpyLookup
error AttributeError: module 'nbdev_numpy' has no attribute 'lookup'
cause Typo or wrong class name. The correct class is NumpyLookup.
fix
Use: from nbdev_numpy import NumpyLookup
breaking The module name uses an underscore (nbdev_numpy) not a hyphen. Importing as nbdev-numpy will fail.
fix Use from nbdev_numpy import NumpyLookup
deprecated The library is early and APIs may change without notice. Pin to a specific version in production.
fix pip install nbdev-numpy==0.0.2386
gotcha nbdev-numpy requires nbdev to be installed and configured; otherwise get_doc may return empty results.
fix Install nbdev and run nbdev_install_hooks in your repo.

Import the lookup class and call get_doc with a numpy symbol.

from nbdev_numpy import NumpyLookup
lookup = NumpyLookup()
# Example: get doc for numpy.array
print(lookup.get_doc('numpy.array'))