# Source code / framework for writing Dash tutorials?

**URL:** <https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114>\
**Category:** Dash Python\
**Created:** [May 19, 2021, 11:15pm UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114 "2021-05-19T23:15:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghc1001](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@ghc1001](https://community.plotly.com/u/ghc1001)\
**Post date:** [May 19, 2021, 11:15pm UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/1 "2021-05-19T23:15:45Z")

</div>

Hi everyone,

I’d like to be able to produce documentation on the fly just like the Dash tutorials - I want to embed an “app” in the page, i.e. write the code, display the code, then display the output for live interaction in the HTML page, just like, say: [Basic Callbacks | Dash for Python Documentation | Plotly](https://dash.plotly.com/basic-callbacks) (see screenshot below).

So question: How are the Dash tutorials written? Is there a framework I need?

Thanks,

George

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/2/2a7b02ef6a1ec929352cc2f4be1bbbe1d8a3fb50.png)

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [May 20, 2021, 3:07pm UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/2 "2021-05-20T15:07:59Z")

</div>

Hi @ghc1001 and welcome to the Dash community 🙂

The Dash documentation and tutorial is actually a Dash app. You can find it [here](https://github.com/plotly/dash-docs)

If you don’t need something quite so elaborate, you can include your code using `dcc.Markdown()`

---

<div class="post-metadata">

**Author:** ![ghc1001](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@ghc1001](https://community.plotly.com/u/ghc1001)\
**Post date:** [May 20, 2021, 11:58pm UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/3 "2021-05-20T23:58:19Z")

</div>

Wow - that’s clever: You’re documenting Dash with Dash! Thank you for the reference to [GitHub - plotly/dash-docs: The Official Dash Userguide & Documentation](https://github.com/plotly/dash-docs), AnnMarie

---

<div class="post-metadata">

**Author:** ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)\
**Post date:** [May 21, 2021, 6:31am UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/4 "2021-05-21T06:31:32Z")

</div>

The dash-leaflet docs are also a dash app 🙂

[https://dash-leaflet.herokuapp.com/](https://dash-leaflet.herokuapp.com/)

---

<div class="post-metadata">

**Author:** ![tcbegley](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@tcbegley](https://community.plotly.com/u/tcbegley)\
**Post date:** [May 21, 2021, 7:56am UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/5 "2021-05-21T07:56:05Z")

</div>

In case two examples aren’t already enough, the [dash-bootstrap-components docs](https://dash-bootstrap-components.opensource.faculty.ai/) are _also_ [a Dash app](https://github.com/facultyai/dash-bootstrap-components/tree/main/docs). There’s [a description](https://community.plotly.com/t/show-and-tell-community-thread/7554/58) of how it works in the Show and Tell thread (there’s a bit more going on using Flask, Jinja templates, and Markdown files).

---

<div class="post-metadata">

**Author:** ![ghc1001](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@ghc1001](https://community.plotly.com/u/ghc1001)\
**Post date:** [May 21, 2021, 10:56pm UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/6 "2021-05-21T22:56:19Z")

</div>

It’s really cool. I’m new to Dash so thanks for the references, guys!

Btw, I came across the following quote in [URL Routing and Multiple Apps | Dash for Python Documentation | Plotly](https://dash.plotly.com/urls), which is a kind of prep for the dash-docs:

“This Dash Userguide that you’re looking at is itself a multi-page Dash app, using these same principles.”

---

<div class="post-metadata">

**Author:** ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)\
**Post date:** [May 23, 2021, 1:58pm UTC](https://community.plotly.com/t/source-code-framework-for-writing-dash-tutorials/53114/7 "2021-05-23T13:58:36Z")

</div>

Hi @ghc1001  
I actually just created a video tutorial to help people get started with the **markdown component in Dash**. In case you’re interested, you can find it here:

[![](https://img.youtube.com/vi/hXAFzogkkKk/maxresdefault.jpg "Markdown Component - Plotly Dash") ](https://www.youtube.com/watch?v=hXAFzogkkKk)

And attached you will find a quick cheat sheet for getting started with markdown:

> **[markdown sheet.docx](https://drive.google.com/file/d/11dJHN4JPR24jJKUiE5aydhtOh6a-3oqq/view?usp=sharing)**
>
> Google Drive file.
