You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix filename in Logger message when typechecking is on
When typechecking is on, decorator filename was printed out instead of the actual filename from where the Logging originates from.
Enhancements
🔗 Issue Ref
📌 Summary
📜 Description
[No Ref]
Python versions 3.11 and 3.12 now supported
All Python versions ranging from 3.8 through 3.12 are now supported.
[No Ref]
Slider returns integers when possible
When min/max/step are integers, value is necessary an integer and returned as such.
[No Ref]
Refactor all file type output elements under FileOutput
No longer necessary to have one class per FileOutput type.
[No Ref]
FileOutput to optionally create output path
Use make_path in file_output() to automatically make the path if doesn't exists.
New Features
🔗 Issue Ref
📌 Summary
📜 Description
[No Ref]
OneCode Cloud compatibility
Rework and Streamlit extraction to make OneCode Apps deployable on OneCode Cloud.
[No Ref]
New CLI onecode-build
Extract the GUI JSON file used to build the UI on OneCode Cloud.
[No Ref]
New CLI onecode-zip
Archive all output data in a zip file.
[No Ref]
Add element dependency
Retrieve elements dependencies when attributes are dynamic.
⚠️ Breaking changes
While it has been nice to get started with, Streamlit app generation is no longer part of OneCode. See onecode-streamlit for more information on backward-compatibility.
pyarrow no longer a direct dependency of onecode. As a consequence, CsvReader element no longer read CSV through pyarrow.read_csv() but pandas.read_csv()
pydantic no longer a strong dependency, it was moved to the developer dependencies. Therefore using the variable ONECODE_DO_TYPECHECK=1 requires the pydantic installation.
Allow for custom import and init statements in InputElement and OutputElement
Streamlit app.py generated through onecode-start now has placeholders for import and init statements. See imports() and init() static methods in InputElement and OutputElement.
[No ref]
Allow meta-data for elements
Meta-data can now be attached to any Input/Output element through **kwargs.
[No Ref]
Namespace logging
Logger (info, warning, critical and debug) now uses a namespace `
PlotlyOutput allows to visualize Plotly charts. ExperimentalVariography example showcases it.
[No ref]
Setup Project configuration through environment variables
Allow additional way to setup Project configuration options from command line.
⚠️ Breaking changes
10 introduces a potential breaking change if you have custom InputElement or OutputElement where the streamlit() method relies on one of these statements being present in app.py:
If this is the case, simply inherit import() and/or init() static methods so that they return the relevant statements.
See FileInput.imports() and FileInput.init() as examples.
Custom InputElement or OutputElement can no longer initialized with an argument named kind:
it now is a reserved attribute. This change was triggered by a bug fix as kind was potentially overwritten
when extracting element through onecode-extract. Upgrade your custom element by changing your argument name.