Jochem Smit
SSolara
•Created by Jochem Smit on 2/26/2024 in #questions-issues
ipymolstar (anywidget) in solar app
I'm trying to put the ipymolstar PDBemolstar widget in a solara app.
(https://github.com/Jhsmit/ipymolstar; use master branch, release is broken)
this works:
and a new protien is loaded when you enter a PDB id
(also the viewer reloads when button is pressed but might be fixed with
use_memo
)
I've tried the .element API since I thought anywidgets count as ipywidgets?
c = PDBeMolstar.element(molecule_id=molecule_id.value)
but in this way there is no rerender when I change molecule_id
. Do i need to do anything else for that to work? the ipyleaflet example seem to work like this18 replies
SSolara
•Created by Jochem Smit on 2/6/2024 in #questions-issues
Altair expand width to available horizontal space
I'm trying to get my altair chart to expand to the available width.
Gives a fixed width chart taking up about half the available space
With
.properties(width="container")
, which according to altair docs should make the figure expand to the available width, the figure is reduced to zero width.
5 replies