I would look through some of the wonderful codes by Oma Falk . She's managed to get some graphics using python on Sololearn.
Here is a simple way to show an image in Sololearn from a URL. https://code.sololearn.com/c10iqZtr0FJw/?ref=app
It might seem a bit complicated but if you read about it and practise (sometimes a lot!), it doesn't seem so hard after all. Take this code from Oma Falk https://code.sololearn.com/cnu6WNCI9pTq/?ref=app Then check out this tutorial: https://realpython.com/image-processing-with-the-JUMP_LINK__&&__python__&&__JUMP_LINK-pillow-library/
You might need to install the appropriate packages or whatever they're called... pip install urllib
You would need to use certain libraries. The one I'm aware of is Tkinter, the image will be in an application window rather than console. You need to do research on it
They're quite complex though, how do you make ones that are simple and just show how to output an image from the Internet (I know I should have said before)
How come this doesn't work in other code executors