File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ v 0.1.3] - 2024-10-09
4+ - Fix width bug while using panel backend
5+ - Add support for Python < 3.11 for ` Required ` and ` NotRequired ` types in ` stpyvista.panel_backend `
6+
37## [ v 0.1.2] - 2024-10-09
48- Implement trame backend using ` st.components.declare_component ` ; it was implemented using ` st.components.html `
59- Trame backend accepts a ` key ` to avoid remounting of the component at every interaction.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " stpyvista"
7- version = " 0.1.2 "
7+ version = " 0.1.3 "
88authors = [
99 { name = " Edwin Saavedra C." , email = " esaavedrac@u.northwestern.edu" },
1010]
Original file line number Diff line number Diff line change 33 Optional ,
44 Literal ,
55 TypedDict ,
6- Required ,
7- NotRequired ,
86)
97
8+ try :
9+ # Available from Python 3.11
10+ from typing import Required , NotRequired
11+
12+ except ImportError :
13+ # Fallback for older Python versions.
14+ # typing_extensions is not a dependency of stpyvista but it
15+ # is a dependency of streamlit, so it should be available.
16+ from typing_extensions import Required , NotRequired
17+
1018import panel as pn
1119import streamlit .components .v1 as components
1220
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ function onRender(event) {
3737 }
3838
3939 if ( Boolean ( use_container_width ) ) {
40+ updateFrameWidth ( ) ;
41+
4042 window . onresize = function ( event ) {
4143 updateFrameWidth ( ) ;
4244 }
You can’t perform that action at this time.
0 commit comments