Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Excluding notebooks and/or cells in notebooks from execution #58

Closed
spors opened this issue Nov 26, 2020 · 3 comments
Closed

Excluding notebooks and/or cells in notebooks from execution #58

spors opened this issue Nov 26, 2020 · 3 comments
Labels
question Further information is requested

Comments

@spors
Copy link

spors commented Nov 26, 2020

Single notebooks or single cells in notebooks might not be able to run on a virtual machine, e.g. due to missing hardware or data. This could be addressed for instance by adding an exclude_notebook action input to the API. Excluding cells from execution could be realized by checking for some specific key in the cell metadata.

@alex-treebeard
Copy link
Member

alex-treebeard commented Nov 26, 2020

Hey @spors, thanks for taking the time to report this.

RE ignoring whole notebooks: Treebeard can do this with

  uses: treebeardtech/treebeard@master
  with:
    ignore: |
      a.ipynb
      c/*.ipynb

See all action inputs here: https://github.com/treebeardtech/treebeard/blob/master/action.yml and an example

RE ignoring expected exceptions in cells, I am working on a lower level library which will permit this and a lot more. So let me know if you have any interesting use cases or requirements.

@alex-treebeard alex-treebeard added the question Further information is requested label Nov 26, 2020
@spors
Copy link
Author

spors commented Nov 30, 2020

Sorry I have missed this option. Works perfect for entire notebooks!

@spors spors closed this as completed Nov 30, 2020
@alex-treebeard
Copy link
Member

hey @spors I'm not sure where you got to with this but if using the treebeard action I'd recommend looking at migrate to nbmake which is faster and more portable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants