Skip to content
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

🎯 Support --execute for building non-sites #1416

Merged
merged 4 commits into from
Jul 30, 2024

Conversation

agoose77
Copy link
Contributor

Fixes #1415

@fwkoch I'm not clear on what the purpose of session.clone is, so I'm not sure whether sharing a Jupyter session between all clones is reasonable. I think we want the Jupyter session manager to be a singleton so that we don't end up spinning up multiple local servers, but your input is useful here if I've got the wrong end of the stick.

Copy link

changeset-bot bot commented Jul 29, 2024

🦋 Changeset detected

Latest commit: be48d66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
myst-cli Patch
mystmd Patch

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

@agoose77 agoose77 requested a review from fwkoch July 29, 2024 14:17
Copy link
Collaborator

@fwkoch fwkoch left a comment

Choose a reason for hiding this comment

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

Oh nooo, I made basically this identical change at scipy, but it got lost in the shuffle 😅 - sorry! Thanks for getting it over the line. The diffs are almost exactly the same, which builds some confidence... f96a862

Also - regarding Session clones: This is required since sessions have a single store with a single mdast entry for each file. Each export runs its own transformations which mutate the mdast in place, so when running exports in parallel, they must each have their own session or these mutations will conflict. As far as I know, your Jupyter session can (and should) be shared across these, no problem.

@agoose77
Copy link
Contributor Author

Haha, that's sprints for you I suppose! Thanks for taking a look at this, I feel reassured that we settled on the same solutions. Merging :)

@agoose77 agoose77 merged commit 999d34a into main Jul 30, 2024
7 checks passed
@agoose77 agoose77 deleted the agoose77/fix-support-execute-in-exports branch July 30, 2024 12:04
@agoose77 agoose77 self-assigned this Jul 31, 2024
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.

Execution of code cells with when building tex / pdf
2 participants