-
-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IDOM pane #2004
Add IDOM pane #2004
Conversation
Can you also set a parameter? So implementing a Material Slider in Idom but use the value of the slider outside Idom? |
You can do whatever you like in the idom callbacks. |
Codecov Report
@@ Coverage Diff @@
## master #2004 +/- ##
==========================================
- Coverage 84.81% 84.65% -0.17%
==========================================
Files 166 168 +2
Lines 19997 20166 +169
==========================================
+ Hits 16961 17072 +111
- Misses 3036 3094 +58
Continue to review full report at Codecov.
|
@philippjfr I started work on idom-bokeh, but haven't been able to get it to work unfortunately. The docs are a little thin when it comes to pre-built extensions so I haven't been able to make much more progress. I've written up an issue with some info on the errors I'm getting. |
This now works as well as I would hope both in the notebook and when deployed. One thing I had to do since I'm using preact rather than React is swap out the build paths and provide my own package.json. This also means that external JS components have to be served either by the Panel
jupyter_server_extension
or by the Bokeh server. I'll have to do some more testing that the Jupyter server extension is installed properly in all cases but that's technically separate from this PR. Another side-effect of this is that users have to go viapn.pane.IDOM.install
(rather thanidom.install
) to install external packages to ensure that all the paths are set correctly.One nicety I've provided for integration with Panel/Param is
pn.pane.IDOM.use_param
, which can be used like so to get a state value which mirrors a parameter or widget value:In the long-term I would still like to have a much simpler implementation which leverages
idom-client-react
and is shipped as a standalone bokeh extension in http://github.com/idom-team/idom-bokeh.