eriknw / afar

Run code on a Dask cluster via a context manager or IPython magic
Other
30 stars 0 forks source link

Check if final statement is an expression, and display it. #2

Closed eriknw closed 3 years ago

eriknw commented 3 years ago

This is pretty non-standard, but so is afar, so let's try!

This currently copies the final expression locally. Ideally, it would be great only send back the repr. I don't know how to do this with IPython/Jupyter. Time to ask somebody?

eriknw commented 3 years ago

Closing in favor of https://github.com/eriknw/afar/pull/7.

This PR tried to add return to the source lines. The other PR modified bytecode directly (don't be scared! It's reliable).