-
Notifications
You must be signed in to change notification settings - Fork 307
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
Make terminal_class configurable and provide a manager to detect terminal status on linux systems #626
Closed
Closed
Make terminal_class configurable and provide a manager to detect terminal status on linux systems #626
Changes from 6 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
85312f7
Fix missing await when call 'async_replace_file'
1aa046a
Merge branch 'jupyter-server:master' into master
Wh1isper 00c92c2
patch execution_state filed into terminal
418cb18
Update jupyter_server/terminal/handlers.py
blink1073 e03952d
Update jupyter_server/terminal/handlers.py
blink1073 4f4502a
Record the first output to identify the terminal return
728319a
make set state idle if terminal return as a function
12a2cad
patch first_stdout into terminals
fdd7dff
set busy when receive message, set idled when ptyproc read
8e26e88
Make StatefulTerminalManager a class and configuable
695cf27
revert TerminalManager and make all state operation into StatefulTerm…
f4a07e3
add some test on StatefulTerminalManager
3c0688a
improve stateful terminal test
3e3b703
change test wait durations
36fc364
add block to wait init terminal
b6998c1
only test linux system
998efff
pre-commit run
d125c38
Update jupyter_server/tests/test_stateful_terminal.py
blink1073 1af3064
Update jupyter_server/tests/test_stateful_terminal.py
blink1073 1b6c158
Update jupyter_server/tests/test_stateful_terminal.py
blink1073 02f7fb8
Update jupyter_server/tests/test_stateful_terminal.py
blink1073 8c0186b
Update jupyter_server/tests/test_stateful_terminal.py
blink1073 d627bb1
Update jupyter_server/tests/test_stateful_terminal.py
blink1073 4111d90
Only run on Linux
blink1073 e242e56
add terminal_manager_class to support third-party terminal_manager
ea00345
change stateful terminal test config to terminal_manager_class
82847b1
add comments on StatefulTerminalManager
12f3af0
Compatible with terminado_available is False
5d4c9f9
pre-commit run
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This meets my needs, but may not be a good general approach
Maybe we need to raise an issue with terminado?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand it, it is terminal dependent, terminado is just reading from the
pty
: https://github.com/jupyter/terminado/blob/ab4ced0b77c8f198cdc27fe1d52c523635083461/terminado/websocket.py#L77There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it may be a little difficult to implement a reliable solution based on the current architecture. But we can delve into how to determine that an terminal is running