Skip to content

Commit 8304a71

Browse files
committed
preparing 0.0.28
1 parent 80af3ff commit 8304a71

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

chartlets.js/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Version 0.0.28 (from 2024/11/26)
2+
3+
* Updated docs.
4+
15
## Version 0.0.27 (from 2024/11/25)
26

37
* Added component `IconButton` and enhanced other components' attributes.

chartlets.py/CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## Version 0.0.x (in development)
1+
## Version 0.0.28 (from 2024/11/26)
2+
3+
* Updated docs.
24

35
* Added component `IconButton` and enhanced other components' attributes.
46

chartlets.py/chartlets/demo/server.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@
1919
from chartlets.demo.contribs import Panel
2020
from chartlets.demo.utils import NumpyJSONEncoder
2121

22-
DASHI_CONTEXT_KEY = "chartlets.context"
2322

2423
# This would be done by a xcube server extension
2524
Extension.add_contrib_point("panels", Panel)
2625

2726

27+
_CONTEXT_KEY = "chartlets.context"
28+
29+
2830
class DashiHandler(tornado.web.RequestHandler):
2931
@property
3032
def ext_ctx(self) -> ExtensionContext:
31-
return self.settings[DASHI_CONTEXT_KEY]
33+
return self.settings[_CONTEXT_KEY]
3234

3335
def set_default_headers(self):
3436
self.set_header("Access-Control-Allow-Origin", "*")
@@ -97,7 +99,7 @@ def print_usage(app, port):
9799
print(f"Listening on {url}...")
98100
print(f"API:")
99101
print(f"- {url}/chartlets/contributions")
100-
ext_ctx: ExtensionContext = app.settings[DASHI_CONTEXT_KEY]
102+
ext_ctx: ExtensionContext = app.settings[_CONTEXT_KEY]
101103
for contrib_point_name, contributions in ext_ctx.contributions.items():
102104
for i in range(len(contributions)):
103105
print(f"- {url}/chartlets/layout/{contrib_point_name}/{i}")
@@ -120,7 +122,7 @@ def make_app():
120122

121123
# Load extensions
122124
ext_ctx = ExtensionContext.load(Context(), server_config.get("extensions", []))
123-
app.settings[DASHI_CONTEXT_KEY] = ext_ctx
125+
app.settings[_CONTEXT_KEY] = ext_ctx
124126

125127
return app
126128

chartlets.py/chartlets/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.0.27"
1+
version = "0.0.28"

0 commit comments

Comments
 (0)