Tobias Hieta f9008e6366
[NFC][Py Reformat] Reformat python files in mlir subdir
This is an ongoing series of commits that are reformatting our
Python code.

Reformatting is done with `black`.

If you end up having problems merging this commit because you
have made changes to a python file, the best way to handle that
is to run git checkout --ours <yourfile> and then reformat it
with black.

If you run into any problems, post to discourse about it and
we will try to help.

RFC Thread below:

https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style

Differential Revision: https://reviews.llvm.org/D150782
2023-05-26 08:05:40 +02:00
..

A Jupyter kernel for mlir (mlir-opt)

This is purely for experimentation. This kernel uses the reproducer runner conventions to run passes.

To install:

python3 -m mlir_opt_kernel.install

To use it, run one of:

    jupyter notebook
    # In the notebook interface, select MlirOpt from the 'New' menu
    jupyter console --kernel mlir

mlir-opt is expected to be either in the PATH or MLIR_OPT_EXECUTABLE is used to point to the executable directly.