Skip to main content

This Jac plugin adds a streamlit command line option for conveniently running streamlit apps written in Jac.

Project description

jaclang_streamlit Plugin Documentation

The jaclang_streamlit plugin is a powerful tool that allows you to run and test Streamlit apps written in Jac. This documentation will guide you through the installation process and provide instructions on how to run and test your Jac Streamlit apps.

Installation

To install the jaclang_streamlit plugin, you can use pip:

pip install jaclang_streamlit

Running Jac Streamlit Apps

To run a Streamlit app written in Jac, you can use the following command:

jac streamlit app.jac

Replace app.jac with the path to your Jac Streamlit app file.

Generating Graphs with Jac Streamlit

If you want to visualize the graph of your Jac Streamlit app in a browser, you can use the following command:

jac dot_view app.jac

This will open up a Streamlit app in your browser, displaying the graph of your Jac Streamlit app.

Testing Jac Streamlit Apps

To test your Jac Streamlit app using the Streamlit testing framework, you can follow these steps:

  1. Import the AppTest class from jaclang_streamlit:
from jaclang_streamlit import AppTest
  1. Use the AppTest.from_jac_file(filename) method to create an instance of AppTest for your Jac Streamlit app:
app_test = AppTest.from_jac_file(filename)

Replace filename with the path to your Jac Streamlit app file.

  1. You can now use the app_test instance to test your Jac Streamlit app using the Streamlit testing methodology.

Please note that the testing methodology for Jac Streamlit apps is similar to the one used for regular Streamlit apps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jac_streamlit-0.0.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

jac_streamlit-0.0.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page