Internal client of trame
Project description
trame-client is the generic single page application that come with trame. trame-client provides the infrastructure on the client-side (browser) to connect to a trame server, synchronize its state with the server, make method call, load dynamically components and feed a dynamic template provided by the server.
This package is not supposed to be used by itself but rather should come as a dependency of trame. For any specificity, please refer to the trame documentation.
Installing
trame-client can be installed with pip:
pip install --upgrade trame-client
Usage
The Trame Tutorial is the place to go to learn how to use the library and start building your own application.
The API Reference documentation provides API-level documentation.
License
trame-client is made available under the MIT License. For more details, see LICENSE This license has been chosen to match the one use by Vue.js which is instrumental for making that library possible.
Community
Trame | Discussions | Issues | RoadMap | Contact Us
Enjoying trame?
Share your experience with a testimonial or with a brand approval.
Runtime configuration
Trame client is the JS core of trame and can be tuned by url parameters. The table below list which parameters we process and how they affect the client.
enableSharedArrayBufferServiceWorker |
When set this will load an extra script that will use a service worker to enable SharedArrayBuffer |
ui |
Layout name selector. When a trame app define several layout with different name, you can choose which layout should be displayed |
remove |
By default the URL will be cleaned from trame config parameters (sessionURL, sessionManagerURL, secret, application) but if additional parameters should be removed as well but used in the launcher config, this can be achieved by adding a &remove=param1,param2. |
The table below leverage environment variables, mainly for the Jupyter Lab context and the iframe builder configuration.
TRAME_JUPYTER_ENDPOINT |
Used by the trame-jupyter-extension |
TRAME_JUPYTER_WWW |
Used by the trame-jupyter-extension |
JUPYTERHUB_SERVICE_PREFIX |
Used to figure out server proxy path for iframe builder |
HOSTNAME |
When “jupyter-hub-host” is used as iframe builder, the hostname will be lookup using that environment variable |
TRAME_IFRAME_BUILDER |
Specify which iframe builder should be used. If not provided we try to do some smart detection |
TRAME_IPYWIDGETS_DISABLE |
Skip any iPyWidget iframe wrapping |
Development
Build client side code base
cd vue[2,3]-app
npm install
npm run build # build trame client application
cd -
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for trame_client-3.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ade905beadf0b7b5c02509bbd9114b43c500fcf206099bc9b06e1512dcaec60 |
|
MD5 | 5713c2a720f80546dbd6a82fb4894b6d |
|
BLAKE2b-256 | cc01109569d42c86fcd3fc5b7495c0019bdb3d447ef2c789fcbde9dab10b97e3 |