Skip to content

Modular plugins to switch backends? #4

@jtpio

Description

@jtpio

Thanks for working on this extension and sharing it!

Over on https://github.com/jupyterlite/ai we are currently exploring ways to enable frontend-driven AI features and were thinking it would be great if this extension could also be use there.

The idea would be to be able to reuse some of the plugins, such as the diff viewer and the wand cell toolbar icon, but using a different backend for the AI part (in browser or remote).

Currently it looks the jupyterlab-magic-wand extension relies on a server extension, for example for generating the diff with nbdime:

https://github.com/Zsailer/jupyterlab-magic-wand/blob/027bee2b40aeb9ed58d8866a2526c0ddfa9b82dc/jupyterlab_magic_wand/agents/lab_commands/show_diff.py#L4

Since there is no server in the case of JupyterLite, maybe one approach could be to move features to separate plugins, so they could be swapped by other implementations if desired. For example one could use the diff JavaScript library instead of nbdime running on the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions