{"id":27980,"library":"nbdev-pytorch","title":"nbdev-pytorch","description":"nbdev-pytorch provides nbdev doc lookup for PyTorch functions and classes. Supports Python >=3.6. Version 0.0.2385 is the latest; release cadence is irregular as part of the fastai nbdev ecosystem.","status":"active","version":"0.0.2385","language":"python","source_language":"en","source_url":"https://github.com/fastai/nbdev-index/tree/master/","tags":["nbdev","pytorch","documentation","fastai"],"install":[{"cmd":"pip install nbdev-pytorch","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Package uses underscores in module name, not dots","wrong":"from nbdev.pytorch import pytorch_doc","symbol":"pytorch_doc","correct":"from nbdev_pytorch import pytorch_doc"},{"note":"Commonly imported from nbdev itself, but for PyTorch-specific docs use nbdev-pytorch","symbol":"show_doc","correct":"from nbdev_pytorch import show_doc"}],"quickstart":{"code":"from nbdev_pytorch import pytorch_doc\n\n# Look up PyTorch function docs\npytorch_doc(torch.nn.Linear)\npytorch_doc(torch.softmax)","lang":"python","description":"Import nbdev-pytorch and use pytorch_doc to get documentation for any PyTorch symbol."},"warnings":[{"fix":"Use 'import nbdev_pytorch' or 'from nbdev_pytorch import ...'","message":"Module name uses underscores: nbdev_pytorch, not nbdev-pytorch (npm style). Incorrect imports will raise ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"},{"fix":"Explicitly install nbdev-pytorch and import from nbdev_pytorch","message":"If you were using nbdev's built-in doc lookup for PyTorch, that functionality may be moved to nbdev-pytorch. Check if your imports still work after upgrading nbdev.","severity":"deprecated","affected_versions":">=0.0.2000"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'import nbdev_pytorch' or 'from nbdev_pytorch import pytorch_doc'","cause":"Trying to import using dot notation instead of underscore.","error":"ModuleNotFoundError: No module named 'nbdev.pytorch'"},{"fix":"Install nbdev-pytorch and import from nbdev_pytorch","cause":"Assuming nbdev has a pytorch submodule; it does not. You need the separate nbdev-pytorch package.","error":"AttributeError: module 'nbdev' has no attribute 'pytorch'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}