Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
Thanks for the PR. Could you show with a before/after a simple example of what it changes? Also I see there are lots of Untitled.ipynb files in this PR. I don't think they should be there. |
Hi @rasbt, Thank you for your patience. I have updated the PR to address your feedback: Code Cleanup: I have removed the Untitled.ipynb files. They were accidentally included during local testing in Jupyter, and I've now cleaned the branch to include only the necessary changes in watermark.py and magic.py. Implementation Change: I've updated the logic to use action='count' for the -v/--python flag, allowing for progressive verbosity levels as we discussed. Before/After Example: Current (-v): Shows basic Python and IPython versions. Enhanced (-vv): Now adds the full Python executable path, which is very helpful for identifying the active environment.
|
|
Thanks! I think the notebook files are still there though 😅 |
8c85498 to
7d679a6
Compare
7d679a6 to
659fab5
Compare

This pull request builds upon the original discussion in Issue #6 by extending
the existing
-v / --pythonflag to support multiple verbosity levels forreporting Python environment information.
Rather than introducing additional single-letter flags, this approach preserves
the simplicity of the interface while allowing users to progressively inspect
their execution environment — from basic interpreter information to package
managers (pip/conda) and the full Python executable path.
This enhancement is particularly useful for:
The implementation is fully backward-compatible: existing usage of
-vbehavesas before, while higher verbosity levels enable richer diagnostics when needed.
Thank you for maintaining such a widely used and thoughtfully designed project.
I appreciate the clarity of the original discussion and hope this contribution
aligns well with the project’s long-term direction.