0

How to open Image?[Solved by Tibor Santa(Mentor)]

I saw that we can open and view image in Python and R. But I've a question why other shell languages don't support that feature on sololearn? my try, gives the error: https://www.sololearn.com/post/1729038/?ref=app Maybe Developers/Moderator know about this, there might be a way...

23rd Mar 2023, 1:22 PM
Just Some Random Guy
Just Some Random Guy - avatar
7 Réponses
+ 3
The Python playground is quite special. Normally it's not possible to display images in command line console, but the Sololearn app cannot handle popup windows and GUI applications. The Python playground is a hack solution to enrich the data science and ML courses with more visual content. Typically this activity would be done in an interactive notebook environment such as Jupyter. But the java playground did not get the exact same capabilities. There is no way to display graphics and images. In Java you would normally build a Swing or JavaFX application where these binary images can be displayed natively.
26th Mar 2023, 5:15 AM
Tibor Santa
Tibor Santa - avatar
+ 2
Perhaps sololearn does not support it . Anyway moderators will tell you about it.
23rd Mar 2023, 1:31 PM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 2
awt doesn't works in Sololearn.
23rd Mar 2023, 4:36 PM
A͢J
A͢J - avatar
+ 1
A͢J I tried many ways to open it but i was able to get base64 only and about its supported or not I think why it's biased to other shell language. Maybe I should give it as feedback
23rd Mar 2023, 4:39 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
Hasnain [ACTIVE CHALLENGER] I found we can open image but the problem is it gives the base64 code😥
23rd Mar 2023, 1:37 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
Thanks for answering its quite obvious I read the way n yeah there's no way to display images in Java console
26th Mar 2023, 5:26 AM
Just Some Random Guy
Just Some Random Guy - avatar