GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — gh-142927: Auto-open HTML output in browser after generation by ivonastojanovic · Pull Request #143178 · python/cpython Conversation
|
|
You probably need to update the test to NOT open the browser by default and make the CLI the only that sets that option to True :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Changing the issue to gh-142927 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
And we also need to mention something related to this behavior in the docs |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Some tests re opening browsers now 😆 You probably want this diff at least: diff --git a/Lib/test/test_profiling/test_sampling_profiler/test_children.py b/Lib/test/test_profiling/test_sampling_profiler/test_children.py index b7dc878a238..3d6db7dcb56 100644 --- a/Lib/test/test_profiling/test_sampling_profiler/test_children.py +++ b/Lib/test/test_profiling/test_sampling_profiler/test_children.py @@ -992,6 +992,7 @@ def test_subprocesses_flag_with_flamegraph_output(self): "-r", "100", "--flamegraph", + "--no-browser", "-o", output_file, script_file, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hey, 👋 sorry for a drive-by comment, just wanted to chime in with a specific use case: the default behaviour you're introducing here is suuuper annoying when being logged in via SSH (and based on my experience it's too easy to forget the According to this post, it might be possible (at least on best effort basis) to check some environment variables to detect the SSH connection, and perhaps disable the browser-opening automatically in that case? If that sounds reasonable I can do a bit of testing for SSH detection tomorrow. The biggest disadvantage I see that it would make the default behaviour less trivial to explaing to users... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Hey! After thinking about it a bit more, I agree with you 🙂 It does seem more annoying to forget to set |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add a --browser flag that automatically opens the generated flamegraph and heatmap HTML files in the default browser once profiling completes.
6c5bc60 to
2d6e994
Compare
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Given the restrictions i think for now the best course of action is making it opt-in! Great work @ivonastojanovic |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.