HeavenWaters commited on
Commit
426f2d7
·
verified ·
1 Parent(s): 50e0428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ def render_language_content(selected_language):
21
  st.markdown("<h3 style='color:red;'>You selected JavaScript.</h3><p>Add your custom HTML here.</p>",
22
  unsafe_allow_html=True)
23
  elif selected_language == "Python":
24
- st.markdown("""<iframe width="1700" height="700" src="https://codehs.com/sandbox/id/python-3-kr6mEw/embed/?display_mode=default&read_only=True" frameborder="0" allowfullscreen class="video-iframe"></iframe>""",
25
- unsafe_allow_html=True)
26
  elif selected_language == "HTML/CSS/JS":
27
  st.markdown("<h3 style='color:pink;'>You selected HTML/CSS/JS.</h3><p>Add your custom HTML here.</p>",
28
  unsafe_allow_html=True)
 
21
  st.markdown("<h3 style='color:red;'>You selected JavaScript.</h3><p>Add your custom HTML here.</p>",
22
  unsafe_allow_html=True)
23
  elif selected_language == "Python":
24
+ website_url = "https://www.jdoodle.com/ia/1eQe"
25
+ st.components.v1.html(f"""<iframe src="{website_url}" width="100%" height="600px" frameborder="0"></iframe>""",height=600,)
26
  elif selected_language == "HTML/CSS/JS":
27
  st.markdown("<h3 style='color:pink;'>You selected HTML/CSS/JS.</h3><p>Add your custom HTML here.</p>",
28
  unsafe_allow_html=True)