Files
clang-p2996/mlir/utils/jupyter/mlir_opt_kernel/assets/kernel.js
Jacques Pienaar 04c66edd32 [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
2021-02-21 18:16:06 -08:00

10 lines
325 B
JavaScript

define([ "codemirror/lib/codemirror", "base/js/namespace" ],
function(CodeMirror, IPython) {
"use strict";
var onload = function() {
// TODO: Add syntax highlighting.
console.log("Loading kernel.js from MlirOptKernel");
};
return {onload : onload};
});