mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[PR #42] [MERGED] Featuring Notebook (Colab/Jupyter) Compatibility #249
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/p-e-w/heretic/pull/42
Author: @Vinay-Umrethe
Created: 11/23/2025
Status: ✅ Merged
Merged: 11/24/2025
Merged by: @p-e-w
Base:
master← Head:master📝 Commits (7)
e3f48edfeat: Add hybrid UI for notebook compatibility989ac86Restore notebook detection logic487597cfix: Improve notebook detection with env vars3fc84bdchore: cleanup0b52b32chore: cleanup5b7c32acorrect ruff format0710ad9refactor: Address code review feedback📊 Changes
2 files changed (+117 additions, -16 deletions)
View changed files
📝
src/heretic/main.py(+19 -15)📝
src/heretic/utils.py(+98 -1)📄 Description
This time freshly added compatiblity so it's preserves TUI experience with arrow keys for local terminal usage, while also making it usable to people using a notebook environment
Notes:
Practically tested but your suggestion of
richfor_jupyterdidn't worked that import doesn't work since that function in rich library is not so robustEven tried hardcoding that same function exactly from the library itself, yet didn't worked.
So TO Ensure it works used a better
is_notebookfunctionIt works properly as tested other don't
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.