[PATCH] D132647: [LLVM][TableGen] Add JSON magic directive to Jupyter kernel
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 25 04:48:05 PDT 2022
DavidSpickett created this revision.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This allows you to see the records as pretty printed JSON,
which can give you a better idea of the structure.
This is equivalent to `%args --dump-json` except that
the kernel will format it before returning the result.
(and if you did both, it would still work)
Without formatting, the ouput is all one line.
An example is added to the end of the notebook
and is shown in the Markdown export.
Depends on D132646 <https://reviews.llvm.org/D132646>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132647
Files:
llvm/utils/TableGen/jupyter/LLVM TableGen.ipynb
llvm/utils/TableGen/jupyter/LLVM TableGen.md
llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132647.455541.patch
Type: text/x-patch
Size: 6120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220825/7173ae34/attachment.bin>
More information about the llvm-commits
mailing list