Title: fix: explicit stderr piping for Jupyter support (#156) by Ashutosh0x · Pull Request #2030 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: explicit stderr piping for Jupyter support (#156) by Ashutosh0x · Pull Request #2030 · modelcontextprotocol/python-sdk
X Title: fix: explicit stderr piping for Jupyter support (#156) by Ashutosh0x · Pull Request #2030 · modelcontextprotocol/python-sdk
Description: In Jupyter environments, stderr from subprocesses isn't directly visible. To fix this, we pipe stderr via subprocess.PIPE and use a background reader task that detects Jupyter (via is_jupyter()) and prints the output with ANSI red coloring. For standard environments, the output is routed to errlog as before. Also updated create_windows_process to accept int for errlog, allowing subprocess.PIPE. Closes #156
Open Graph Description: In Jupyter environments, stderr from subprocesses isn't directly visible. To fix this, we pipe stderr via subprocess.PIPE and use a background reader task that detects Jupyter (via is_jupyter()...
X Description: In Jupyter environments, stderr from subprocesses isn't directly visible. To fix this, we pipe stderr via subprocess.PIPE and use a background reader task that detects Jupyter (via is_jupyt...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2030
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f851e92a-f693-6570-437b-dcef0a367a4d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A70E:1A34C5:EB2C82:139D083:6A59AC01 |
| html-safe-nonce | 1f6fcf4523ba46f8c6d45941372be4c69acf7b8fa9a4294831b687709279b87d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzBFOjFBMzRDNTpFQjJDODI6MTM5RDA4Mzo2QTU5QUMwMSIsInZpc2l0b3JfaWQiOiI4ODIyODkyNzIyMjcxMTM2NzY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7fef7374c63ee6cbdf39f3f402d330595f8b2fd5244b08e4416c5eb9570640dc |
| hovercard-subject-tag | pull_request:3268717973 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2030/files |
| twitter:image | https://avatars.githubusercontent.com/u/161562995?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/161562995?s=400&v=4 |
| og:image:alt | In Jupyter environments, stderr from subprocesses isn't directly visible. To fix this, we pipe stderr via subprocess.PIPE and use a background reader task that detects Jupyter (via is_jupyter()... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab680789ae4a316cdaf0d5a292a1760140931cc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width