Skip to content

CLI to start an interactive container on RunAI. It helps reducing the costs by cleaning the interactive session on exit.

License

Notifications You must be signed in to change notification settings

LSIR/runai-interactive-context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunAI interactive context

PyPI - Version PyPI - Python Version

This CLI improves the interactive mode of the runai CLI by:

  • Deleting the job on exit to reduce the costs of idle interactive sessions.
  • Allowing for longer delays when asking for a port forward (RunAI CLI only waits 60 seconds)
  • Parsing and translating url of a jupyter notebook (with the forwarded port and token information).

Table of Contents

Installation

pip install runai-interactive-context

Usage

Start an interactive jupyter server:

runai-interactive --mode jupyter <job_name> <image_name> -- jupyter server

Run a streamlit application

runai-interactive --mode port --container-port 8501 <job_name> <image_name> -- streamlit app.py

License

runai-interactive-context is distributed under the terms of the MIT license.

About

CLI to start an interactive container on RunAI. It helps reducing the costs by cleaning the interactive session on exit.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages