Remove Jupyter infra - #2982
Merged
Merged
Conversation
AlexanderViand
approved these changes
May 26, 2026
AlexanderViand
left a comment
Collaborator
There was a problem hiding this comment.
100% agree - in place of the old heir_play package, I've been using this snippet in notebooks:
from heir.heir_cli import heir_cli, heir_cli_config
# expose heir-opt to Python (bypassing the normal HEIR Python frontend)
heir_opt = heir_cli.HeirOptBackend(heir_cli_config.from_pip_installation().heir_opt_path)which can be used like this:
# put MLIR in here
program = """
func.func @example(%x : f32) -> f32 {
%0 = math.exp %x {degree = 5 : i32, domain_lower = -4.0 : f64, domain_upper = 4.0 : f64} : f32
return %0 : f32
}
"""
print(heir_opt.run_binary(
input=program,
options=["--secretize", "--torch-linalg-to-ckks"]
))It might be a good idea to provide the heir_cli.HeirOptBackend(heir_cli_config.from_pip_installation().heir_opt_path) under a nicer name for exactly this use case?
Now that we have both a PyPI distribution and rules_heir, there is no longer a significant reason to have a Jupyter integration. Also, since it is not tested, it is almost surely out of date and broken. I'd prefer we instead direct our efforts toward improving the Python frontend to encapsulate whatever usability might still be desired from the jupyter cell magics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that we have both a PyPI distribution and rules_heir, there is no longer a significant reason to have a Jupyter integration.
Also, since it is not tested, it is almost surely out of date and broken. I'd prefer we instead direct our efforts toward improving the Python frontend to encapsulate whatever usability might still be desired from the jupyter cell magics.