Spaces:
Sleeping
Sleeping
Reverting changes
Browse files- code_editor.py +0 -8
code_editor.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
import streamlit_ace as st_ace
|
| 5 |
-
from streamlit_monaco import st_monaco
|
| 6 |
import os
|
| 7 |
import time, psutil
|
| 8 |
from pathlib import Path
|
|
@@ -82,13 +81,6 @@ def render_code_editor(ace_theme):
|
|
| 82 |
st.session_state.code = default_code
|
| 83 |
st.session_state.prev_language = selected_lang
|
| 84 |
|
| 85 |
-
code1 = st_monaco(
|
| 86 |
-
value=st.session_state.code,
|
| 87 |
-
language=selected_lang.lower() if selected_lang != "C++" else "cpp",
|
| 88 |
-
theme=ace_theme, # "vs", "vs-dark", etc.
|
| 89 |
-
height="400px" # Must be string with px
|
| 90 |
-
)
|
| 91 |
-
|
| 92 |
# ββ ACE Code Editor ββββββββββββββββββββββββββββββ
|
| 93 |
code = st_ace.st_ace(
|
| 94 |
value=st.session_state.code,
|
|
|
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
import streamlit_ace as st_ace
|
|
|
|
| 5 |
import os
|
| 6 |
import time, psutil
|
| 7 |
from pathlib import Path
|
|
|
|
| 81 |
st.session_state.code = default_code
|
| 82 |
st.session_state.prev_language = selected_lang
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
# ββ ACE Code Editor ββββββββββββββββββββββββββββββ
|
| 85 |
code = st_ace.st_ace(
|
| 86 |
value=st.session_state.code,
|