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

Set the language lexer on MyST code cells from the language info #1326

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwouts
Copy link
Owner

@mwouts mwouts commented Feb 16, 2025

This is an experimental PR. It set the language lexer on code cells only if the language info is preserved in the filtered metadata.

Might be one way to address #789

Copy link

Thank you for making this pull request.

Did you know? You can try it on Binder: Binder:lab or Binder:notebook.

Also, the version of Jupytext developed in this PR can be installed with pip:

HATCH_BUILD_HOOKS_ENABLE=true pip install git+https://github.com/mwouts/jupytext.git@issue_789_myst_lexers_require_language_info

(this requires nodejs, see more at Developing Jupytext)

@mwouts mwouts marked this pull request as draft February 16, 2025 20:56
if the language_info is preserved in the filtered metadata
@mwouts mwouts force-pushed the issue_789_myst_lexers_require_language_info branch from d3a5eb3 to 78e5c07 Compare February 16, 2025 21:04
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.

1 participant