Multi-terminal support for respective tab switching#111
Multi-terminal support for respective tab switching#111AdityaShome wants to merge 1 commit intosugarlabs:masterfrom
Conversation
|
But now I can't work on another source file in the same program, because every time I switch to the other tab the terminal disappears! |
|
Exactly that's the issue and this PR resolves that by providing separate terminals for each tab, also maintaining the running execution state. It also stores the running terminal output independently, so switching between tabs will neither interrupt the processes or nor erase it until user decides to do it by clear button. It is also very helpful in case user wants to check previous outputs in any tabs. |
|
No, you misunderstand, if I'm in the middle of debugging a two file program, and have an error message in one terminal, then as soon as I switch to the other tab the message is no longer visible. |
|
Thanks for the clarification, I understand now while working with 2 source files of a same program, errors from different files should be visible while switching tabs. To support the use case, I can create any of the following :
Let me know which approach aligns the best or any other suggestions. |
|
Thanks. It is starting to sound way too complicated for an elementary school child learner, who in general have trouble understanding the most basic user interface elements. The features you describe are available in VS Code and other environments, so if a teacher needs to support more complex workflows like this they can upgrade their lesson plan to a different tool. By the way, Pippy's documentation for teachers is hosted at and comes from the source file https://github.com/godiard/help-activity/blob/master/source/pippy.rst So a more complete understanding of this problem may be had by planning the changes you would make to the documentation, always considering the elementary school teacher as the audience. Always in a rush, worried about classroom management, and just wants software to support learning in class or at home. |
|
Thanks for the feedback, that makes sense. I agree that we should keep Pippy simple for young learners. I’ll did check out the documentation and will make sure any proposed changes stay aligned with what teachers need that is easy to use, quick to understand, and focused on learning. |
Changes
This PR implements dedicated terminals for each tab in the Pippy activity, improving the user experience when working with multiple Python scripts.
Problem
Previously, Pippy used a single terminal shared across all tabs. This meant that:
Implementation
This PR introduces:
multi-terminal-support.mp4
Benefits
This enhancement creates a more consistent and isolated coding environment where:
The implementation maintains backward compatibility while providing this improved multi-tab terminal experience.