-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🤖 Store execution outputs in Outputs
#1903
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: a4d6245 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
b9aafa1
to
cec055e
Compare
cec055e
to
6870f57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments as I am looking now.
Thoughts on a testing plan for this:
|
@@ -136,8 +138,10 @@ describe('Test blockMetadataTransform', () => { | |||
data: { key: 'value' }, | |||
}, | |||
[ | |||
u('output', { identifier: 'my_label-output-0' }, 'We know what we are'), | |||
u('output', { identifier: 'my_label-output-1' }, 'but know not what we may be.'), | |||
u('outputs', { identifier: 'my_label-output' }, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to have this plural?
u('outputs', { identifier: 'my_label-output' }, [ | |
u('outputs', { identifier: 'my_label-outputs' }, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha you anticipated my question regarding https://github.com/jupyter-book/mystmd/pull/1903/files#r1985269343
I used the same ID as before so that the output
→ outputs
change is reflected in the referencing of existing Markdown files. However, I'd prefer it to read outputs
. Thoughts?
const outputsNode = select('outputs', block) as GenericNode | undefined; | ||
if (outputsNode !== undefined && !outputsNode.identifier) { | ||
// Label outputs node | ||
outputsNode.identifier = `${block.identifier}-output`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that these ID changes may need to be taken into account in the upgrade/downgrade script for thebe to continue working.
This PR changes our internal representation of cell outputs so that they are children of the
Outputs
node.It accompanies #1900.
Tasks