Hello Folks,
What is the best means to invoke streamlit from within python code ?
I dont want to go via the CLI route of streamlit run <script-name.py>

  
    
    
    Running Streamlit inside my own executable with the "click" module Using Streamlit
  
  
    I don’t quite understand what you’re asking, but here’s an example of how I got it working: 
Folder structure:
.
├── exampleapp
│   ├── __init__.py
│   ├── myscript.py
│   └── wrapped_cli_tool.py
└── setup.py

setup.py
import platform
import setuptools
import subprocess

setuptools.setup(
    name='exampleapp',
    version='1.0.0',
    description='',
    long_description='',
    url='',
    author='',
    author_email='',
    license='',
    packages=['exampleapp'],
    install_requires=['strea…
  


This link has some reference, but again to invoke as mentioned in link, python click context is needed.
Thankyou
Jacob