Skip to content

Prevent notebook execution from running twice#202

Open
jessicavers wants to merge 1 commit into
mainfrom
update-workflows
Open

Prevent notebook execution from running twice#202
jessicavers wants to merge 1 commit into
mainfrom
update-workflows

Conversation

@jessicavers
Copy link
Copy Markdown
Collaborator

No description provided.

@jessicavers jessicavers requested a review from daurer May 14, 2026 14:05
Copy link
Copy Markdown
Collaborator

@daurer daurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I think there is more potential to further reduce duplicated execution

Comment on lines 77 to 78
python -m jupyter nbconvert /tmp/notebook-parametrized.ipynb --to notebook --execute --allow-errors --output align-notebook --output-dir "{{`{{ inputs.parameters.outpath }}`}}"
python -m jupyter nbconvert "{{`{{ inputs.parameters.outpath }}`}}/align-notebook.ipynb" --to html --output align-output --output-dir "{{`{{ inputs.parameters.outpath }}`}}"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these can be combined into one execution with --to-html and --execute similar to how it works for the XRF tomography template. I think it is basically the second command with an extra --execute...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants