Back to Moneyprinterturbo

MoneyPrinterTurbo Setup Guide

docs/MoneyPrinterTurbo.ipynb

1.2.71.6 KB
Original Source

MoneyPrinterTurbo Setup Guide

This notebook will guide you through the process of setting up MoneyPrinterTurbo.

1. Clone Repository and Install Dependencies

First, we'll clone the repository from GitHub and install all required packages:

python
!git clone https://github.com/harry0703/MoneyPrinterTurbo.git
%cd MoneyPrinterTurbo
!pip install -q -r requirements.txt
!pip install pyngrok --quiet

2. Configure ngrok for Remote Access

We'll use ngrok to create a secure tunnel to expose our local Streamlit server to the internet.

Important: You need to get your authentication token from the ngrok dashboard to use this service.

python
from pyngrok import ngrok

# Terminate any existing ngrok tunnels
ngrok.kill()

# Set your authentication token
# Replace "your_ngrok_auth_token" with your actual token
ngrok.set_auth_token("your_ngrok_auth_token")

3. Launch Application and Generate Public URL

Now we'll start the Streamlit server and create an ngrok tunnel to make it accessible online:

python
import subprocess
import time

print("🚀 Starting MoneyPrinterTurbo...")
# Start Streamlit server on port 8501
streamlit_proc = subprocess.Popen([
    "streamlit", "run", "./webui/Main.py", "--server.port=8501"
])

# Wait for the server to initialize
time.sleep(5)

print("🌐 Creating ngrok tunnel to expose the MoneyPrinterTurbo...")
public_url = ngrok.connect(8501, bind_tls=True)

print("✅ Deployment complete! Access your MoneyPrinterTurbo at:")
print(public_url)