Magic preprocessors for conversion to vanilla Python #1491
The refactor moves almost all the logic to an
I think this is the right thing to do. My major misgiving here is this is not code we like (or are at all proud of!) and I am worried to see this horrible code escape the
@philippjfr I'm expecting the tests to go green and I think this PR should now be reviewed/merged.
It isn't 100% polished or complete but it is probably best to merge sooner rather than later, to help with debugging and to allows us to continue with the docs.
Here are the things introduced in this PR that need finishing off/fixing. These can be associated with issues as necessary:
Edit: Related ideas
Although there are a few loose bits and pieces, the bulk of what this PR offers is the
In addition, this PR adds a collection of preprocessors that make use of these utils to convert notebooks to simple .py scripts. One of the main things this will enable is launching notebooks as bokeh apps with minimal (if any!) changes.