[mlir] Add simple jupyter kernel
authorJacques Pienaar <jpienaar@google.com>
Sat, 30 Jan 2021 16:55:55 +0000 (08:55 -0800)
committerJacques Pienaar <jpienaar@google.com>
Mon, 22 Feb 2021 02:16:06 +0000 (18:16 -0800)
commit04c66edd3251975fd253e4c4b0e86ea56e8a7f46
tree1d413cdbcf19222bb2a39a51a09983f869645db7
parent5ca21175e09fc7fb7dcaee9ebd6782d122a5688f
[mlir] Add simple jupyter kernel

Simple jupyter kernel using mlir-opt and reproducer to run passes.
Useful for local experimentation & generating examples. The export to
markdown from here is not immediately useful nor did I define a
CodeMirror synax to make the HTML output prettier. It only supports one
level of history (e.g., `_`) as I was mostly using with expanding a
pipeline one pass at a time and so was all I needed.

I placed this in utils directory next to editor & debugger utils.

Differential Revision: https://reviews.llvm.org/D95742
mlir/utils/jupyter/.gitignore [new file with mode: 0644]
mlir/utils/jupyter/README.md [new file with mode: 0644]
mlir/utils/jupyter/mlir_opt_kernel/__init__.py [new file with mode: 0644]
mlir/utils/jupyter/mlir_opt_kernel/__main__.py [new file with mode: 0644]
mlir/utils/jupyter/mlir_opt_kernel/assets/kernel.js [new file with mode: 0644]
mlir/utils/jupyter/mlir_opt_kernel/assets/kernel.json [new file with mode: 0644]
mlir/utils/jupyter/mlir_opt_kernel/install.py [new file with mode: 0644]
mlir/utils/jupyter/mlir_opt_kernel/kernel.py [new file with mode: 0644]