You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. Jupyter Notebooks support "tag" attributes on the cell. In VS Code the extension seems to allow you to add a Cell Tag, but it does not appear in the file JSON for the .sasnb file. Goal is to support this and suggest a method or tag convention of 'NOEXEC' or 'IGNORE' so that Run All action would skip over any code cell tagged that way.
Describe the solution you'd like
Support adding any tag with built-in Cell Tag menu (found in the ... or "more actions" menu on a cell). Then, implement the Run All action to skip code cells specifically tagged with NOEXEC (or whatever tag term you feel makes sense). Then we document the feature and practice for this. We can allow any arbitrary tag, but only certain tag values would have meaning for the actions we document.
Describe alternatives you've considered
Came across this idea as I was looking at a way to extract a complete program from a .sasnb, and realizing that some cells might be only for interactive use and not intended for "batch" style runs. This "ignore" tag convention is what Jupyter Notebook does with nbconvert-style runs.
Environment
SAS 9 | SAS Viya -- all notebooks
The text was updated successfully, but these errors were encountered:
I tried Jupeter Notebook web application. I added a tag "ignore" on a cell and click "restart the kernel and run all", but all cell get run. I then tried VS Code with a .ipynb, added a tag "ignore" on a cell and click Run All. All cell run too.
Where can I see the feature for Jupyter? Just want to understand the convention. Like do we really want to skip in Run All in VS Code UI or skip when export to .sas?
snlwih
changed the title
SAS Notebook: add support for tag to "skip" execution of cell in Run All
{SAS Notebook] add support for tag to "skip" execution of cell in Run All
Oct 9, 2024
Is your feature request related to a problem? Please describe.
Jupyter Notebooks support "tag" attributes on the cell. In VS Code the extension seems to allow you to add a Cell Tag, but it does not appear in the file JSON for the .sasnb file. Goal is to support this and suggest a method or tag convention of 'NOEXEC' or 'IGNORE' so that Run All action would skip over any code cell tagged that way.
Describe the solution you'd like
Support adding any tag with built-in Cell Tag menu (found in the ... or "more actions" menu on a cell). Then, implement the Run All action to skip code cells specifically tagged with NOEXEC (or whatever tag term you feel makes sense). Then we document the feature and practice for this. We can allow any arbitrary tag, but only certain tag values would have meaning for the actions we document.
Describe alternatives you've considered
Came across this idea as I was looking at a way to extract a complete program from a .sasnb, and realizing that some cells might be only for interactive use and not intended for "batch" style runs. This "ignore" tag convention is what Jupyter Notebook does with nbconvert-style runs.
Environment
SAS 9 | SAS Viya -- all notebooks
The text was updated successfully, but these errors were encountered: