v.0.14
2023.01.13
Last updated
2023.01.13
Last updated
This version has been deprecated. If used with the current API version it can produce unexpected behaviour or errors.
The package shimoku-api-python is no longer maintained
To get the new version
This version comes with a lot of new features and quality of life improvements! This will be a trend for a couple of the next versions.
Tabs have been fixed and improved! Now when they are deleted they will delete all their contents and will not leave child plots around like they did until now. Also tables work within tabs and a feature to order the tabs order inside of the tabs group has been added.
By default the tabs will respect the order of creation but the function s.plt.change_tabs_group_internal_order() can be used to give them an arbitrary order.
This example:
Resutls in:
To increase the robustness of the Shimoku platform in situations of high loads, such as uploading large tables, we have implemented a technique called exponential backoff. This technique automatically retries failed operations or requests, increasing the chances of success. This feature is always on and does not require any configuration or enabling by the users.
The deletion of apps has been improved significantly efficiency-wise, now both s.plt.clear_business() and s.plt.delete_path() (Only when the app name is provided without a sub-path) are far faster and convenient to use.
Now there is an option to change the theme of the business to adatpt it more to the case needs. The function s.business.update_business_theme() needs to be provided with a dictionary for all the options that want to be changed, this features options will be explained in detail in it's respective entry.
An example on how to use it is:
with the result being:
The following charts got an update on the style of the toolbox: stacked barchart, horizontal stacked barchart and stacked area chart.
The new toolbox look is:
Indicators now use an updated version that lets them have a lot of new features, but now when a group of indicators is passed as the input data each one of them uses one position in the grid, so they use n orders. To make this easier to work with, the function s.plt.indicator returns the next available order value
An example on how to use it would be:
the result is:
The option to arrange indicators vertically has been added, through the use of the parameter vertical. This allows the user to create a column of indicators, using a bentobox with the provided cols_size (that by default is 12), and including the indicators inside. This option has no limit of indicators and will continue to grow vertically. To use this feature, pass True to the vertical parameter when calling the indicator function. Additionally, a title can be added to the top of the bentobox by passing a string to the same parameter vertical (If its set to True it will arrange them vertically but will not set any title).
An example would be:
resulting in:
A new composite plot has been added! The gauge indicator uses an indicator and a gauge chart and joins them with a bentobox.
When we execute this example:
The result is:
A new input form component has been added, the audio-recorder. It is used to record snippets of audio and send them.
An example on how to use it is:
results in:
To begin recording, the user just has to press the button with the microphone symbol:
And press it again to stop recording:
Multiple audios can be recorded:
The html components of the library shimoku-components-catalog have been added as an intern module of the SDK in the form of s.html_components. They are used in the same way as before, when called they provide the necessary html code to call s.plt.html().
So now we can use the html components without needing to import the additional library: