aws / aws/graph-notebook

Publish graph_notebook_widgets JS assets to npm

Open
#537 5 comments 8 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
819
Forks
179
PR merge metrics
No merged PRs in 30d

Description

**Community Note**
* Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.
* If you are interested in working on this issue or have submitted a pull request, please leave a comment.

**Is your feature request related to a problem? Please describe.**
Disclaimer: I work for Databricks.

Databricks supports ipywidgets like Jupyter Notebook and Lab does, but for security reasons, our notebooks run widgets in sandboxed iframes that fetch widgets JS assets from public CDNs like npm. Some of our customers would like to use your library inside Databricks notebooks, but can't because you are not `npm publish`ing your JS assets.

As a side benefit: if you publish your assets, graph notebook widgets also work on [voila](https://voila.readthedocs.io/en/latest/?badge=latest)! :)

**Describe the solution you'd like**
The solution is pretty straightforward. You already create the JS distribution bundle [here](https://github.com/aws/graph-notebook/blob/main/src/graph_notebook/widgets/package.json#L62) `/dist`. All you'd need to do is publish that by running `npm publish`. You could add that rule [here](https://github.com/aws/graph-notebook/blob/main/src/graph_notebook/widgets/package.json#L84-L103).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.