Skip to content
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 ability to define explicit embed states #1274

Merged
merged 6 commits into from
Apr 16, 2020

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Apr 16, 2020

Fixes #1198

Simple example:

slider = pn.widgets.FloatSlider(name='A')

@pn.depends(slider)
def fn(value):
    return value + 1

pn.Row(slider, fn).embed(states={slider: [0.1, 0.7, 1]})
  • Add docs
  • Add tests

@codecov
Copy link

codecov bot commented Apr 16, 2020

Codecov Report

Merging #1274 into master will decrease coverage by 0.01%.
The diff coverage is 86.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1274      +/-   ##
==========================================
- Coverage   87.73%   87.72%   -0.02%     
==========================================
  Files         124      124              
  Lines       13238    13323      +85     
==========================================
+ Hits        11615    11688      +73     
- Misses       1623     1635      +12     
Impacted Files Coverage Δ
panel/io/notebook.py 58.64% <ø> (ø)
panel/io/save.py 57.33% <ø> (ø)
panel/widgets/player.py 82.75% <25.00%> (-2.96%) ⬇️
panel/widgets/select.py 92.92% <58.33%> (-1.19%) ⬇️
panel/widgets/slider.py 91.45% <70.58%> (-1.50%) ⬇️
panel/tests/io/test_embed.py 99.35% <97.05%> (-0.65%) ⬇️
panel/io/embed.py 85.99% <100.00%> (ø)
panel/viewable.py 68.69% <100.00%> (ø)
panel/widgets/base.py 81.17% <100.00%> (ø)
panel/widgets/button.py 83.33% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a256833...2ba488d. Read the comment docs.

@philippjfr philippjfr merged commit 3f090da into master Apr 16, 2020
@philippjfr philippjfr deleted the philippjfr/1198_embed_states branch April 16, 2020 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selecting widget states to embed before exporting to html
1 participant