Skip to content

Rethink inline javascript for reports for JupyterLab compatibility #205

@sserita

Description

@sserita

Is your feature request related to a problem? Please describe.
The current report workspaces heavily uses inline javascript for its interactive rendering. This works great in regular Jupyter notebooks, but JupyterLab silently suppresses the JS execution. If more users are moving towards JupyterLab, this is something we should provide an alternative for.

Describe the solution you'd like
Maintain the same level of display functionality as classic Jupyter notebooks in JupyterLab.

Describe alternatives you've considered

  • Try to find an extension/setting that reenables the current JS execution in JupyterLab, and require it for interactive report generation.
  • Rework the JS execution into something that is natively enabled in JupyterLab.

Not sure which is the easier solution yet. The former seems like less work in the PyGSTi codebase but may not be easy to find/require. More likely, we should make sure to keep this in mind the next time we spend significant effort on upgrading the reports.

Additional context
I have not searched exhaustively yet, but this thread is relevant: jupyterlab/jupyterlab#3118

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for a new feature or a change to an existing feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions