I hope everyone is having a great Wednesday. Here in Swarthmore, a warm sun is shining on the snow!
Q: What if you do some work Python at deepnotes.com and want to just "publish" the notebook and send me a link? How to turn that link in to Moodle?
A: There are probably more elegant ways, but I just enabled submission of a plain text file with extension .txt. (You can still submit PDF files of course, and if you are really stuck changing an image format, JPEG files.)
You can add a .txt file to any homework submission which says "Please see my Deepnotes work here: URL". It should be possible for me to cut and paste that URL into a browser, and see your Python work.