-
Notifications
You must be signed in to change notification settings - Fork 38
[WIP] Changes necessary to work standalone similar to ipywidgets examples #157
Conversation
…examples (c) Copyright IBM Corp. 2015
12b4d1c
to
d227b4a
Compare
We should also compare notes with jupyter/dashboards#127 which is out of date but still has the bulk of the code for using jupyter-js-services instead of Thebe. Also, https://github.com/jupyter-incubator/dashboards_nodejs_app which will be the default ref impl for "give me this notebook as a securable app". |
A couple of the challenges in this work:
|
(c) Copyright IBM Corp. 2015
7701390
to
ef4a829
Compare
(c) Copyright IBM Corp. 2015
So basically was able to get through the bootstrap stage of setting up the page with declarativewidgets support. Had to make some changes to prevent This demo shows the following: |
(c) Copyright IBM Corp. 2015
df1acd7
to
b6fac88
Compare
/cc @dalogsdon @jhpedemonte since you're paving the way for everything that needs to go into jupyter/dashboards_server#2 |
@@ -35,7 +35,7 @@ | |||
"outputs": [], | |||
"source": [ | |||
"// modify to IP and Port of this notebook server\n", | |||
"%addjar http://192.168.99.100:8888/nbextensions/urth_widgets/urth-widgets.jar" | |||
"%addjar http://192.168.99.100:8888/nbexten tsions/urth_widgets/urth-widgets.jar" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
que?
jupyter-widgets/ipywidgets#383 made a change to I thought of adding generic code such as this: for (var key in Widgets.WidgetModel) {
if (Widgets.WidgetModel.hasOwnProperty(key))
DeclWidgetModel[key] = Widgets.WidgetModel[key]
} Unfortunately, in addition to We could just directly map Also, I don't like that we need to bring over a "private" (starts with underscore) method in order to extend |
This works. |
Another issue: |
I'm closing this PR since @jhpedemonte has already made the necessary changes in #251 |
This PR is just intended as an experiment of what it would take for declarativewidgets to operate in a standalone jupyter-js-services.
I'm following https://github.com/ipython/ipywidgets/tree/9602b80f627656171cbda55ddb92481146325920/examples/development/web3 as a template.