Skip to main content

add an ignore directive to hide the cell and avoid execution during testing and docs generation in Jupyter notebooks when using nbdev for development.

Project description

Nbdev-ignore

Install

pip install nbdev-ignore

How it works

There’s only one function ignore_ in this module. It’s exactly the same as the hide_ processor in nbdev, so that “#| ignore” serves the same purpose as “#| hide”. For details on how it works, see .

In order for it to also serve as a test flag, we will need to manually add it to tst_flags (see below), as currently there’s no way to plug it into the nbdev_test process.

How to use

To enable the #| ignore directive, in your settings.ini make sure to:

  • Add nbdev_ignore as a requirement
  • Add procs = nbdev_igore.core:ignore_, where it should point to the exact function being called
  • Add it to test flags: tst_flags = ignore, so that cells with this directive also avoids testing. If you already have other test flags, separate them with space. For example, if you already have notest as your test flag, then tst_flags = notest ignore.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbdev-ignore-0.0.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbdev_ignore-0.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file nbdev-ignore-0.0.2.tar.gz.

File metadata

  • Download URL: nbdev-ignore-0.0.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.7

File hashes

Hashes for nbdev-ignore-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d5d4e32c4e365a8ea425d474684761b6c2188badc4feb4558a9ec510c6c99760
MD5 07f2fcc9dd6593e294465217aecf19ce
BLAKE2b-256 89f5ea949f8985fab865b632aa67af37c2a4944363dbe21ab515c70f7ee385ce

See more details on using hashes here.

File details

Details for the file nbdev_ignore-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nbdev_ignore-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.7

File hashes

Hashes for nbdev_ignore-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 083781bc5e88bbe4998ff6022dc5a8592c37f2133ae51ca19e9a8820b4b8d5c3
MD5 2581e80eba47c5570658dd5cada044b1
BLAKE2b-256 c2ed6b4f07f730f2f62b0b87adbd5e5f989d53003728b58e90716f3bf5db358d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page