Skip to content

Conversation

@isamert
Copy link

@isamert isamert commented Feb 14, 2025

This PR introduces two variables to control the integration with org:

  • jupyter-org-want-keybinding
  • jupyter-org-want-integration

which are true by default to keep the old behavior.

I believe org interaction should be optional because any breakage in jupyter package causes issues with org and that is a very frustrating experience for heavy org users. Now with these variables, user can disable the integration for the time being or they can simply turn it on manually on demand.


(add-hook 'org-export-before-processing-functions #'org-babel-jupyter-setup-export)
(add-hook 'org-export-before-parsing-functions #'org-babel-jupyter-strip-ansi-escapes)
(when jupyter-org-want-integration
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why should this be here? There would be no way to recognize Jupyter source blocks in the buffer if we don't make the aliases at some point and the other hooks only apply for Jupyter specific source blocks as well.

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