Improve Gemini's code execution UI for data scientists
product-improvement case · difficulty 4/5 · 30 minutes · software-tech · Google
Prompt
You are the product manager for Gemini. Improve the code execution UI for data scientists.
Context
Gemini can run Python in a chat. Data scientists work in notebooks with persistent state, charts and iterative changes, which a linear chat handles poorly. Core tension: Managing stateful, multi-turn notebook environments inside a conversational chat interface seamlessly. This is a conversation, follow the **CIRCLES** steps or any sensible structure of your own.
Clarifying questions
- Focus on debugging or visualization?
- Debugging: errors and re-runs in multi-turn analysis. Visualization is secondary.
- What is failing today?
- In multi-turn sessions, state is lost or unclear, 22% of runs fail on the first attempt and users re-paste code to fix them.
Recommendation
**Recommendation:** State panel plus inline error explainer with reviewable fixes - **Who:** data scientists iterating on models - **Need addressed:** See the state and fix errors without starting over - **Why this option:** They have the highest effect on failures at medium effort. Editable cells are powerful but need major stateful-engine work, so they come later; notebook export is a cheap add-on. - **Success metrics:** Code snippet execution success, Time to resolution, Multi-turn retention
Risks
- Auto-fixes may hide the real cause of a bug
- Long sessions increase memory and cost
Next steps
- Prototype the state panel with 50 data scientists
- Track first-run failure rate and time to resolution