# Streamline d3blocks

**URL:** <https://discuss.streamlit.io/t/streamline-d3blocks/32376>\
**Category:** Custom Components\
**Created:** [October 23, 2022, 7:39pm UTC](https://discuss.streamlit.io/t/streamline-d3blocks/32376 "2022-10-23T19:39:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chacho](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/chacho/32/10411_2.png) [@chacho](https://discuss.streamlit.io/u/chacho)\
**Post date:** [October 23, 2022, 7:39pm UTC](https://discuss.streamlit.io/t/streamline-d3blocks/32376/1 "2022-10-23T19:39:33Z")

</div>

Hi there!

There is a new Python library called d3blocks that sounds promising if you want to create a D3 chart with python (relatively easy). I’m wondering if it’s possible to show one d3blocks chart directly on a streamlit app like a Matplotlib or Altair chart.

Thanks++!

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [October 23, 2022, 8:12pm UTC](https://discuss.streamlit.io/t/streamline-d3blocks/32376/2 "2022-10-23T20:12:07Z")

</div>

Apparently d3blocks write HTML to files, you should be able to read the HTML from the file and put it in an html component. Such a use case is explicitly mentioned in the docs.

> **[Components API - Streamlit Docs](https://docs.streamlit.io/library/components/components-api)**

---

<div class="post-metadata">

**Author:** ![erdogant](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/erdogant/32/78274_2.png) [@erdogant](https://discuss.streamlit.io/u/erdogant)\
**Post date:** [October 16, 2026, 11:45am UTC](https://discuss.streamlit.io/t/streamline-d3blocks/32376/3 "2026-10-16T11:45:03Z")

</div>

There is a full integration of D3Blocks possible into streamlit. Details with examples can be found in the readme file and documentation pages of d3blocks.

> **[Streamlit — d3blocks d3blocks documentation](https://d3blocks.github.io/d3blocks/Streamlit.html)**

> **[GitHub - d3blocks/d3blocks: The Python library to create stand-alone and...](https://github.com/d3blocks/d3blocks/)**
>
> The Python library to create stand-alone and interactive d3 charts.
