nrrb/code_graph
0
1from dash import dcc2 3def get_intro_markdown():4 return dcc.Markdown("""5### ⚡ Function Call Visualizer for Python6 7Upload `.py` files and instantly see how functions connect—**visually**. 8Ideal for refactoring, onboarding, debugging, or exploring unfamiliar code.9 10---11 12#### 🔍 Features13- Upload **one or more** Python files14- Pick a top-level function to trace all its calls15- Auto-inferred:16 - Function arguments and return types (e.g. `df: pd.DataFrame`)17 - Session state usage (e.g. Streamlit `session_state`)18- Interactive graph with:19 - Call order on edges (`1`, `2`, `3`)20 - Thicker lines for repeated calls21 - Directional arrows and clear layout by call depth22- Toggleable summary tables23 24---25 26#### 🚀 How to Use271. Switch to the **Graph Explorer** tab282. Upload `.py` file(s)293. Select an entry-point function304. Explore how your code is structured—at a glance31 32---33 34### 👋 About the Creator35 36This open-source tool is built by **Tomas Larsson**, 37a data scientist and creator of [**my.moneytoolbox.com**](https://mymoneytoolbox.com), where he shares tools and insights for:38 39- Tax-efficient investing 40- Retirement modeling 41- Personal finance analytics 42- Code-first decision tools for DIY investors and engineers43 44---45 46### 🤝 Connect47 48 49Love tools like this? 50Connect on [**LinkedIn**](https://www.linkedin.com/in/tomaslarsson/) — 51Love to discuss ideas for new tools.52 53 54 55---56 57### 🧠 Tags 58`#python` `#static-analysis` `#ast` `#code-visualization` `#developer-tools` `#streamlit` `#dash` `#visualization`59 60 """,link_target="_blank")61 