[PATCH] D132378: [LLVM][TableGen] Add jupyter kernel for llvm-tblgen
Jacques Pienaar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 12:58:56 PDT 2022
jpienaar added a comment.
Nice, I've found a variant where one just uses Python magic to do most of the same. The pro is not requireing any installation of jupyter kernel, the con is a little bit less output flexibility and error reporting I felt wasn't as nice.
================
Comment at: llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py:81
+ ('', ['%foo a b c'])
+ >>> k.get_magic("Foo\\n%abc\\n Bar\\n%def")
+ ('Foo\\n Bar', ['%abc', '%def'])
----------------
Can one interleave magic like this in jupyter? I thought one had cell and line magic but both required to be only at start. (Well required is strong word, expected perhaps better)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132378/new/
https://reviews.llvm.org/D132378
More information about the llvm-commits
mailing list