moj-analytical-services / splink_demos

Interactive notebooks containing demonstration code of the splink library
37 stars 27 forks source link

Unable to render visualisations in Jupyter Notebook #77

Open mshearer0 opened 2 years ago

mshearer0 commented 2 years ago

Unable to render visualisations in Jupyter Notebook:

<VegaLite 4 object>

If you see this message, it means the renderer has not been properly enabled
for the frontend that you are using. For more information, see
https://altair-viz.github.io/user_guide/troubleshooting.html

Suggest: alt.renderers.enable('default')

henryf3 commented 1 year ago

Facing the same issue when try to use splink with jupyter notebook (using aws interactive sessions). It just shows the message: <splink.charts.VegaliteNoValidate object at 0x7f639faf6410>

RobinL commented 1 year ago

Have you tried alt.renderers.enable('default')?

In the demos, we use alt.renderers.enable('mimetype') so that the visualisations will show up in the documentation website. It also works in most environments but not all. Try deleting this line if you're currently running it

See also https://altair-viz.github.io/user_guide/display_frontends.html

henryf3 commented 1 year ago

@RobinL yes, i tried every mode available. I think it is related to the kernel Glue Pyspark, since in the regular kernel Python it works fine. Any suggestion would be welcome!