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

Using XPlugin for cell magics #140

Open
anutosh491 opened this issue Jun 4, 2024 · 2 comments
Open

Using XPlugin for cell magics #140

anutosh491 opened this issue Jun 4, 2024 · 2 comments

Comments

@anutosh491
Copy link
Collaborator

I think we could introduce a plugin system for cell magics. It would be pretty helpful to the end-users.

Magics in xeus-cpp are registered into a magics_manager class, that inherits from a preamble which is used for detecting special inputs in the cell before deciding to parse the code.

Currently, the scarce available magics are part of the xeus-cpp codebase, and adding a new one means rebuilding and releasing xeus-cpp. A plugin system would avoid that. We could leverage the plugin system here (https://github.com/QuantStack/xplugin) . Xplugin would add the possibility to discover magics at runtime

@anutosh491
Copy link
Collaborator Author

We would eventually want a generic mechanism to register / fetch magics in xeus. So we could start with a proto in xeus-cpp before going for the generic solution and eventually have xplugin as a dependency in xeus.

@anutosh491
Copy link
Collaborator Author

A list of magics have been noted down in this issue.

@anutosh491 anutosh491 changed the title Using XPlugin Using XPlugin for cell magics Jun 4, 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

No branches or pull requests

1 participant