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
During the Project Pythia Cookoff earlier this year and a follow on work session at SciPy some folks (myself included) put together a list of steps documenting how to convert an existing Project Pythia Cookbook to a Jupyter Book 2 / Myst Cookbook. These notes currently live in a shared Google Docs, but should move to a more public and Project Pythia owned location.
@jukent suggested one (or some) of the contributing guides as a good place to start looking.
Including the list of steps below as well in case there's some discussion needed re: where they should live.
Steps to convert an existing Project Pythia Cookbook from Jupyter Book 1 to Jupyter Book 2 / MyST:
Request to be added to the https://github.com/projectpythia-mystmd/ GitHub organization
Fork your existing (non-converted) Project Pythia Cookbook into the projectpythia-mystmd GitHub organization
Clone your repository
Add mystmd to your environment.yml file
Create a new environment from the updated environment file conda env create -f environment.yml and activate your environment
Initialize MyST-MD myst init --write-toc and answer n for if you want to run myst start now (unless you’d like to check out a local version of it)
Generate a GitHub Actions workflow via myst init --gh-pages, answering the prompts accordingly for deploying it from main and calling it deploy.yml
Edit your configuration file to use the Pythia configuration by adding the highlighted lines to your myst.yml
Edit your configuration file to use Jupyter by adding these highlighted lines to your myst.yml and updating the repository info to reflect the current project
Edit your configuration file to add the appropriate metadata e.g. title, authors, copyright, keywords (new), etc. and/or port it over from the old _config.yml file. You can find more information about all of the available options here in the documentation
Reference conversion currently will be missing the combined references section at the end since this is not something MyST currently supports. Instead it will automatically generate a references section for each notebook. It also doesn’t include a references header on the right menu bar, but will automatically pick up your existing BibTeX file without specification
Remove existing reference sections at the end of notebooks since these will be duplicated
During the Project Pythia Cookoff earlier this year and a follow on work session at SciPy some folks (myself included) put together a list of steps documenting how to convert an existing Project Pythia Cookbook to a Jupyter Book 2 / Myst Cookbook. These notes currently live in a shared Google Docs, but should move to a more public and Project Pythia owned location.
@jukent suggested one (or some) of the contributing guides as a good place to start looking.
I suspect the either the Cookbook Contributor's Guide or a new location would be the place to add this.
Including the list of steps below as well in case there's some discussion needed re: where they should live.
Steps to convert an existing Project Pythia Cookbook from Jupyter Book 1 to Jupyter Book 2 / MyST:
https://github.com/projectpythia-mystmd/
GitHub organizationmystmd
to yourenvironment.yml
fileconda env create -f environment.yml
and activate your environmentmyst init --write-toc
and answern
for if you want to run myst start now (unless you’d like to check out a local version of it)myst init --gh-pages
, answering the prompts accordingly for deploying it frommain
and calling itdeploy.yml
myst.yml
myst.yml
and updating the repository info to reflect the current project_config.yml
file. You can find more information about all of the available options here in the documentationreferences.md
)myst start --execute
.github/workflows/deploy.yml
andmyst.yml
.The text was updated successfully, but these errors were encountered: