Comments (2)
I am not sure exactly what is happening, but I suspect that it is cause by the line 'st.session_state.update(st.session_state)'. If you are trying to update a session state in Streamlit, it is best to do it as such: st.session_state['key'] = 'new value'.
from streamlit-authenticator.
@mkhorasani
i get the same error when using the following
def clear_session():
st.session_state['doctxt'] = ''
st.session_state['DOCfiles'] = []
raise
StreamlitAPIException(SESSION_STATE_WRITES_NOT_ALLOWED_ERROR_TEXT)
streamlit.errors.StreamlitAPIException:
Values for st.button, st.download_button, st.file_uploader, st.data_editor,
st.chat_input, and st.form cannot be set using st.session_state.
I'm new to streamlit, and I thought this would be an easy thing to do, as it is in most languages.
I just need to clear everything out after a user is done processing so they can start a new entry. Is there a way to call a function in streamlit to reset or clear all the streamlit controls?
from streamlit-authenticator.
Related Issues (20)
- logout() requires browser window reload HOT 1
- missing 1 required positional argument: 'form_name' HOT 2
- 'invalid salt' prompt with no further details HOT 1
- Login not disappearing, imports not working, register not writing HOT 2
- Refreshing page does not use cookie to re-authenticate HOT 13
- Email verification after registration HOT 1
- validate_name function validation issues HOT 1
- Speed up process of authentication HOT 1
- To force user to use stonger password when they register HOT 2
- Captcha verification HOT 1
- streamlit_authenticator import error HOT 2
- Cannot instantiate authenticator object in multiple pages: DuplicatedWidgetId
- Suggested improvement: Remove spaces in input text in login form to prevent failed login during autocomplete
- logged_in field in credentials is not used to force authentication HOT 2
- Refresh Page Would Lost Login and the way to fix it HOT 1
- Typo in README.md in Authenticate.register_user(): pre-authorization => pre_authorization HOT 1
- Add callback options for widgets
- DeprecationError: Likely deprecation error, the 'form_name' parameter has been replaced with the 'fields' parameter. HOT 1
- add firebase capability HOT 3
- authenticator.login() is takes too much time HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamlit-authenticator.