NPM module for supporting ipywidgets in vscode-jupyter extension
MIT License
web3
from https://github.com/jupyter-widgets/ipywidgets/blob/master/examples/web3
web3
sample to host ipywidgets outside of Jupyter Notebook
.https://github.com/jupyter-widgets/ipywidgets/blob/master/examples/web3
& https://github.com/jupyter-widgets/ipywidgets/blob/master/packages/html-manager/webpack.config.js
.
traditionally
as there seems to be some ongoing work to use commonjs2
, though unsure how this will work with 3rd party widgets.amd
or umd
its easier to just import everything using commonjs2
, then export for requirejs
using define
by hand.
define('xyz', () => 'a')
is a simple way of declaring a named xyz
module with the value a
(using requirejs
).amd
is not what we want, as out react ui
doesn't use amd
.umd
is does not work as we have multiple entry points
in webpack
.define('@jupyter-widgets/controls', () => widgets);
define
https://unpkg.com/browse/@jupyter-widgets/[email protected]/dist/embed-amd.js
embed-amd.js
file.embed-amd.js
into our bundle.requirejs
, but installing this into node_modules
, for extension causes conflicts as we use require
in standard node (extension and UI).
@types/requirejs/index.d.ts
into the types
folder.This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
You might want to setup an npm link for the python repository
Then to build vscode-jupyter-ipywidgets