1
0
Fork 0
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

Closed
opened 2026-11-01 04:19:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • e3f48ed feat: Add hybrid UI for notebook compatibility
  • 989ac86 Restore notebook detection logic
  • 487597c fix: Improve notebook detection with env vars
  • 3fc84bd chore: cleanup
  • 0b52b32 chore: cleanup
  • 5b7c32a correct ruff format
  • 0710ad9 refactor: 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 rich for _jupyter didn't worked that import doesn't work since that function in rich library is not so robust

Even tried hardcoding that same function exactly from the library itself, yet didn't worked.
So TO Ensure it works used a better is_notebook function

It works properly as tested other don't


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/p-e-w/heretic/pull/42 **Author:** [@Vinay-Umrethe](https://github.com/Vinay-Umrethe) **Created:** 11/23/2025 **Status:** ✅ Merged **Merged:** 11/24/2025 **Merged by:** [@p-e-w](https://github.com/p-e-w) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`e3f48ed`](https://github.com/p-e-w/heretic/commit/e3f48ed3bc41f05c07ea3eb1eb07a49549cdff4f) feat: Add hybrid UI for notebook compatibility - [`989ac86`](https://github.com/p-e-w/heretic/commit/989ac860869b327731ff14aaa3dfe9c60d3bc57b) Restore notebook detection logic - [`487597c`](https://github.com/p-e-w/heretic/commit/487597c51b8fcb261673d26f538031e6dabf1525) fix: Improve notebook detection with env vars - [`3fc84bd`](https://github.com/p-e-w/heretic/commit/3fc84bd8ecaa1d1230221cddc9ca7a3fd2b53812) chore: cleanup - [`0b52b32`](https://github.com/p-e-w/heretic/commit/0b52b3251b36e0786cffde9f0fd3d45c3bb11ef5) chore: cleanup - [`5b7c32a`](https://github.com/p-e-w/heretic/commit/5b7c32ad5e064322b91b2f4f4fc97fd2a57ae349) correct ruff format - [`0710ad9`](https://github.com/p-e-w/heretic/commit/0710ad969b5c04dd7ae4ee4790784a1c7b87bb06) refactor: Address code review feedback ### 📊 Changes **2 files changed** (+117 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src/heretic/main.py` (+19 -15) 📝 `src/heretic/utils.py` (+98 -1) </details> ### 📄 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 `rich` for `_jupyter` didn't worked that import doesn't work since that function in rich library is not so robust Even tried hardcoding that same function exactly from the library itself, yet didn't worked. So TO Ensure it works used a better `is_notebook` function ### It works properly as tested other don't --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-01 04:19:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#249
No description provided.