Skip to content

Multiple Components inside one module #2

@digitaltopo

Description

@digitaltopo

How would you add multiple distinct react components packaged into one python module?

Would you just use multiple JupyterReact.init for different components in index.js:

function load_ipython_extension() {
  requirejs(["base/js/namespace", "base/js/events"], function(Jupyter, events) {
    JupyterReact.init
    ...

and then import multiple python modules (like thing.py in the example)?

The end goal would be something like:

from example import Thing1
from example import Thing2

Thanks for your work on this project @chelm!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions