Skip to content

hssm.graph() does not render in marimo notebook #856

@Jovan-Kemp

Description

@Jovan-Kemp

Describe the bug
hssm.graph() does not render in a marimo notebook.

HSSM version
Version: 0.2.11

To Reproduce

import marimo as mo
import hssm
import numpy as np

v_true = 0.5
a_true = 1.5
z_true = 0.5
t_true = 0.5

param_dict_init = dict(
    v=v_true,
    a=a_true,
    z=z_true,
    t=t_true,
)


dataset_simulated_main = hssm.simulate_data(
    model="ddm",
    theta=param_dict_init,
    size=500,
)

simple_ddm_model = hssm.HSSM(data=dataset_simulated_main)
simple_ddm_model.graph()

Screenshots
Image within marimo environment with a convert to png solution.
Image

Additional context
A similar problem was reported and fixed for pymc.Model: pymc-devs/pymc#7830

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions