Skip to content

Commit de165db

Browse files
authored
Add graph widget (#102)
# Motivation <!-- Why is this change necessary? --> Add ability to display a codemdo graph visualization # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed - [ ] I have read and agree to the [Contributor License Agreement](../CLA.md)
1 parent 23f0bad commit de165db

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

docs/building-with-codegen/codebase-visualization.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,22 @@ These visualizations have a number of applications, including:
1414
- Analyzing dependencies
1515
- Understanding inheritance hierarchies
1616

17-
This guide provides a basic overview of graph creation and customization.
17+
This guide provides a basic overview of graph creation and customization. Like the one below which displays the call_graph for the [modal/client.py](https://github.com/modal-labs/modal-client/blob/v0.72.49/modal/client.py) module.
18+
19+
<iframe
20+
width="100%"
21+
height="600px"
22+
scrolling="no"
23+
src={`http://localhost:3000/embedded/graph?id=ef312926-286d-4c13-8e09-38e1a47882f1&zoom=0.5`}
24+
className="rounded-xl "
25+
style={{
26+
backgroundColor: "#15141b",
27+
}}
28+
></iframe>
1829

1930
<Note>
2031
Codegen visualizations are powered by [NetworkX](https://networkx.org/) and
21-
rendered using [ThreeJS](https://threejs.org/).
32+
rendered using [d3](https://d3js.org/what-is-d3).
2233
</Note>
2334

2435
## Basic Usage

docs/introduction/overview.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ function.set_docstring('new docstring') # set docstring
3636
src={`https://chadcode.sh/embedded/codemod/?code=${encodeURIComponent(
3737
intoSnippet
3838
)}`}
39-
className="rounded-md "
40-
41-
> </iframe>
39+
style={{
40+
backgroundColor: "#15141b",
41+
}}
42+
className="rounded-xl"
43+
></iframe>
4244

4345
## Installation
4446

0 commit comments

Comments
 (0)