Overview

Easily share your applications and services through American Data Science's environments with your running workspace.

Getting Started

Every notebook server has their own port forwarding URL that you can find by running echo $PORT_FORWARD_URL in your terminal.

You can use this to deploy and run apps directly in your notebook and securely share them immediately on a public URL.

Here's an example you can run in a notebook that launches a gradio server on localhost:5000 in your notebook.

import gradio as gr

def greet(name, intensity):
    return "Hello, " + name + "!" * int(intensity)

demo = gr.Interface(
    fn=greet,
    inputs=["text", "slider"],
    outputs=["text"],
)

demo.launch(server_port=5000)

!echo $PORT_FORWARD_URL

You can visit the PORT_FORWARD_URL or just view it on the Agent Alph page.

Last updated