RuntimeError when loading some observable notebooks using streamlit_observable

When loading some of the observable notebooks using streamlit_observable in python, I can see RuntimeError: d3 is not defined. Examples of such codes are below:

import streamlit as st
from streamlit_observable import observable
observable("The Trusted Line Chart", notebook="@d3/line-chart")
observable("sankey", notebook="@d3/sankey")

You can also see the same error in the main demo created by streamlit_observable developers. Do you know how I can solve this issue? Thanks