Skip to content

Commit 5c66b8b

Browse files
committed
Comment theme issue for Marimo
1 parent 7581b03 commit 5c66b8b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
- Allow setting the theme manually in `VG.render(theme="light")` and `VG.render_widget(theme="dark")`.
1919
- Use typed nodes and relationship traitlets in GraphWidget, i.e., list of Node and Relationship instead of dictionaries.
2020
- `render` now allows to pass `layout` as a string as well. Previously expected to be a typed `neo4j_viz.Layout`.
21+
- Fixed rendering in Marimo notebooks. Note, you still have to manually pass the marimo theme `VG.render_widget(theme=marimo.app_meta().theme)`
22+
2123

2224
## Other changes

examples/marimo-example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def _(mo):
6969
def _(VisualizationGraph, mo, nodes, relationships):
7070
# Create and render the visualization
7171
VG = VisualizationGraph(nodes=nodes, relationships=relationships)
72+
# Note, we need to pass the theme explicitly in Marimo.
7273
widget = VG.render_widget(theme=mo.app_meta().theme, renderer="canvas")
73-
# TODO figure out why the rendering in Marimo is off
7474
widget
7575
return VG, widget
7676

0 commit comments

Comments
 (0)