docs/MoneyPrinterTurbo.ipynb
This notebook will guide you through the process of setting up MoneyPrinterTurbo.
First, we'll clone the repository from GitHub and install all required packages:
!git clone https://github.com/harry0703/MoneyPrinterTurbo.git
%cd MoneyPrinterTurbo
!pip install -q -r requirements.txt
!pip install pyngrok --quiet
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.
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")
Now we'll start the Streamlit server and create an ngrok tunnel to make it accessible online:
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)