I have written a bit about combining Jupyter console with the command line [0]. Not exactly the workflow you describe, but perhaps still useful.
[0] https://datascienceatthecommandline.com/2e/chapter-10-polygl...
[0] https://datascienceatthecommandline.com/2e/chapter-10-polygl...