Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: Switch to Jupyter IPython tab when the first RUN_IPYTHON action is received. #1490

Open
xingyaoww opened this issue May 1, 2024 · 0 comments
Labels
enhancement New feature or request frontend issues related to frontend good first issue Good for newcomers severity:low Minor issues, code cleanup, etc

Comments

@xingyaoww
Copy link
Collaborator

xingyaoww commented May 1, 2024

What problem or use case are you trying to solve?

Now that #1363 is merged. The issue now is that whenever the agent (you should use CodeActAgent for debugging) issues an IPython execution action, the Jupyter IPython tab will show a blue active circle. But the front-end interface will NOT switch to that tab.

image

Describe the UX of the solution you'd like

The front-end should automatically switch to the Jupyter IPython tab when a RUN_IPYTHON action is received by the front-end so that the user can realize that the model is actively doing something.

But we probably don't need to go there everytime a new RUN_IPYTHON action is received (e.g., the user may want to take a look at the what is in the code editor, and it can be annoying if we keep jump user back to the Jupyter tab).

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

Additional context

You can start work on this by using CodeActAgent, asking it "Can you print hello world first, then plot a figure of equation (y=x, x=0,1,2,3,4) using matplotlib?".

Demo video:

codeact-agent-juputer-plot.mp4
@xingyaoww xingyaoww added enhancement New feature or request good first issue Good for newcomers frontend issues related to frontend labels May 1, 2024
@rbren rbren added the severity:low Minor issues, code cleanup, etc label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend issues related to frontend good first issue Good for newcomers severity:low Minor issues, code cleanup, etc
Projects
None yet
Development

No branches or pull requests

2 participants