Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamlitApp #167

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

StreamlitApp #167

wants to merge 2 commits into from

Conversation

lolicato
Copy link

@lolicato lolicato commented Dec 6, 2023

To deploy your Streamlit app to Streamlit Cloud, follow these steps:

  1. Navigate to app directory:
cd StreamlitApp
  1. Install the required packages listed in your requirements.txt file:
pip install -r requirements.txt
  1. Run your Streamlit app locally:
streamlit run app.py

This will open the app in a web browser, allowing you to test it.

  1. In the top right corner of the Streamlit app (in the web browser), click on the "deploy" button.
  2. Follow the instructions provided to deploy your app to Streamlit Cloud.

This will make your Streamlit app accessible on the web via Streamlit Cloud.

Copy link
Collaborator

@comcon1 comcon1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear Fabio! Thank you very much for this PR. I would like to come back to it. @ohsOllila, this pull-request will allow us to deploy on a StreamLit cloud. It will serve well for dissemination of NMRlipids as StreamLit is a large collection of various data-processing "apps".

@lolicato, could you please fix the following issues:

  1. Put StreamlitApp into a subfolder, for example ./third-party/StreamlitApp or integrations/StreamlitApp.
  2. We changed a way we import by making a package. Now we have a proper package called DatabankLib and we import from the outside directly, like this:
from DatabankLib.utils import run_analysis
from DatabankLib.analyze import computeAPL
  1. We've made an absolute path system. Please use it. Check DatbankLib.NMLDB_*_PATH defined in Scripts/DatabankLib/__init__.py
  2. We moved jupyter-related things to a separated module Scripts/DatabankLib/jpyroutines.py. But I'm against having dependency to streamlit there because I want databankLib can be installed without streamlit dependency and it's non-logical to have a submodule with the dependecy. So, could you please create a separated module, for example Scripts/DatabankLib/integrations/streamlit_routines.py and write import streamlit only there. Even better if you define these functions directly in the same folder where you put app.py. Then we will have a compact interface to streamlit in the isolated folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants