Skip to content

Commit

Permalink
fix issue where initial theme css includes both ace streamlit themes …
Browse files Browse the repository at this point in the history
…when it should only be one of them
  • Loading branch information
bouzidanas committed May 28, 2023
1 parent 5aea1a9 commit 8b004d1
Show file tree
Hide file tree
Showing 483 changed files with 32 additions and 10,534 deletions.
8 changes: 4 additions & 4 deletions code_editor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# the component, and True when we're ready to package and distribute it.
# (This is, of course, optional - there are innumerable ways to manage your
# release process.)
_RELEASE = True
_RELEASE = False

# Declare a Streamlit component. `declare_component` returns a function
# that is used to create instances of the component. We're naming this
Expand Down Expand Up @@ -172,11 +172,11 @@ def code_editor(code, lang='python', theme="default", shortcuts="vscode", height
ace_props = {"style": {"borderRadius": "0px 0px 8px 8px"}}

input = st.text_area("Input:", demo_sample_python_code, height=200)
response_dict = code_editor(input, height = height, lang=language, theme=theme, shortcuts=shortcuts, focus=focus, buttons=btns, info=info_bar, props=ace_props, options={"wrap": wrap}, allow_reset=True, key="code_editor_demo")
response_dict = code_editor(input, height = height, lang=language, theme=theme, shortcuts=shortcuts, focus=focus, buttons=btns, info=info_bar, props=ace_props, options={"wrap": wrap})

if response_dict['type'] == "submit" and len(response_dict['text']) != 0:
st.write("Response type: ", response_dict['type'])
st.code(response_dict['text'], language=response_dict['lang'])

st.write("### Code Editor Props:")
st.write("### Code Editor:")
st.code(input, language=language)
# st.write("You can find more examples in the [docs]()")

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8b004d1

Please sign in to comment.