+ 1

How can i use html in python code?

9th Oct 2021, 7:58 AM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
13 Réponses
+ 2
Pico Soft According to me.... Sololearn recently added support for graphs and images in python codes and "R" language is also introduced in Sololearn code playground. As these languages needs to show the graphs. But Sololearn code playground function like that < first compile at server end and then show the result as output (only one time run)> So it might kinda not possible to show images with this. So they did some sort of thing to use html(to show images) but we found more with this feature by experiments. *That's why this thing only works when you try to create/show a image. That you do with `os.system('touch img.png')` > 'touch' is a linux/mac command to create files
10th Oct 2021, 12:47 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 4
At sololearn? This way: import os os.system("touch file.png") print("<div>hi</div>") And I don't know what this magical image is. Maybe a professional who is interested in helping others can tell us: Martin Taylor
9th Oct 2021, 8:29 PM
Arsalan [Inactive]
Arsalan [Inactive] - avatar
+ 3
👍
9th Oct 2021, 12:23 PM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
+ 2
AKSHAY🇮🇳 ohhhh come on!😂😂😂 That's so ridiculous 😂😂😂😂
10th Oct 2021, 2:47 PM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
+ 1
I'm also interested in this
9th Oct 2021, 11:28 AM
Sunday Yemi Olanisimi 🇳🇬
Sunday Yemi Olanisimi 🇳🇬 - avatar
+ 1
Arsalan Martin dont uses SL app, so he will not get a notification that you have mentioned him, so avoide mentioning users in Discuss section until it is not important. Pico Soft This question already asked, so next time try to use search bar https://www.sololearn.com/discuss/2826179/?ref=app
10th Oct 2021, 9:18 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
Hi AKSHAY🇮🇳. recently I have been searched about this reason but i didn't found my answer
10th Oct 2021, 10:44 AM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
+ 1
AKSHAY🇮🇳 so for windows how? or it's the same?
10th Oct 2021, 1:19 PM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
+ 1
Pico Soft NO there is nothing like Sololearn in any other platforms either it is mac, windows or linux. THIS ONLY WORKS IN SOLOLEARN
10th Oct 2021, 2:45 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
Pico Soft 😆 no one can do anything about this
10th Oct 2021, 2:57 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
0
And at other platforms like pc or smart phone?
10th Oct 2021, 4:05 AM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
0
Html code must be interpreted by a browser (or something like that). You can cteate an html file with python, and open it manually or like this: import webbrowser as wb wb.open("file_name.html")
10th Oct 2021, 6:39 AM
Arsalan [Inactive]
Arsalan [Inactive] - avatar
10th Oct 2021, 11:14 AM
Sunday Yemi Olanisimi 🇳🇬
Sunday Yemi Olanisimi 🇳🇬 - avatar