Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions rapidfireai/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ def run_jupyter():
app = ServerApp()
app.open_browser = False
app.port = JupyterConfig.PORT
app.ip = JupyterConfig.HOST
Comment thread
david-rfai marked this conversation as resolved.
app.allow_origin = '*'
app.websocket_ping_interval = 90000
app.log_level = 'CRITICAL'
Expand All @@ -488,9 +489,9 @@ def run_jupyter():
mlflow_port = MLflowConfig.PORT

if os.getenv("TERM_PROGRAM") == "vscode":
print(f"VSCode detected, port {app.port} should automatically be forwarded to localhost")
print(f"Manually forward port {dispatcher_port} to localhost, using the Ports tab in VSCode/Cursor/etc.")
print(f"Manually forward port {mlflow_port} to localhost, using the Ports tab in VSCode/Cursor/etc.")
print(f"VSCode detected, port {app.port} (tcp://{app.ip}:{app.port}) should automatically be forwarded to localhost")
print(f"Manually forward port {dispatcher_port} (tcp://{DispatcherConfig.HOST}:{dispatcher_port}) to localhost, using the Ports tab in VSCode/Cursor/etc.")
print(f"Manually forward port {mlflow_port} (tcp://{MLflowConfig.HOST}:{mlflow_port}) to localhost, using the Ports tab in VSCode/Cursor/etc.")
else:
os_username = os.getenv("USER", os.getenv("LOGNAME", "username"))
print(f"Manually forward port {app.port} to localhost")
Expand Down
2 changes: 1 addition & 1 deletion setup/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ wait_for_service() {
local max_attempts=${4:-$RF_TIMEOUT_TIME} # Allow custom timeout, default 30 seconds
local attempt=1

print_status "Waiting for $service to be ready on $host:$port (timeout: ${max_attempts} attempts)..."
print_status "Waiting for $service to be ready on tcp://$host:$port (timeout: ${max_attempts} attempts)..."

if command -v nc &> /dev/null; then
ping_command="$(command -v nc) -z $host $port"
Expand Down