A Python Ate My GUI
Cristian Medina

> I want to write Python code that spits out the HTML and JavaScript required for these interfaces and I still want to handle all the logic in Python.

Take a look at Bokeh and how they handle js-based interactive charts via a Python library.

From my limited experience it appears to have a very interesting approach. It has three levels you can jump between:

1. Just write Python and get interactive graphs

2. Write Python and small snippets of embedded js when (1) is too limiting

3. Write Python to generate the datasets, and proper javascript via bokeh.js if you need to dig in deep.

And as the project matures — the number of reasons to jump from 1 to 2 to 3 will become less. I’d like to see a similar approach applied to general UI development. It’s a great example of “make the easy things easy, and the hard things possible”.

Like what you read? Give Andy Baker a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.