Open werruww opened 1 day ago
from pyngrok import ngrok ngrok.set_auth_token("xxxxxxxxxxxxxxxxxxxxxxx") public_url = ngrok.connect(3000) print("Public URL:", public_url)
nneed python 3.12
pytjhon colab 3.10
!/usr/local/miniconda/bin/conda create -y -n openhands_env python=3.12
!/usr/local/miniconda/bin/conda run -n openhands_env python --version
!/usr/local/miniconda/bin/conda run -n openhands_env pip install library_name
!/usr/local/miniconda/bin/conda run -n openhands_env python your_script.py
!wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh !bash miniconda.sh -b -p /usr/local/miniconda
!/usr/local/miniconda/bin/conda create -y -n openhands_env python=3.12
!source /usr/local/miniconda/etc/profile.d/conda.sh && conda activate openhands_env
!pip install -q condacolab import condacolab condacolab.install()
!conda install -c conda-forge python=3.12
There are errors, and the form did not run, and I think the name of the form is wrong. Also, the Python version is an error that must be downloaded through Conda. It does not matter that Docker contener ran in Colab.
!pip install udocker
!udocker --allow-root install
!udocker --allow-root pull docker.all-hands.dev/all-hands-ai/openhands:main
!udocker --allow-root run docker.all-hands.dev/all-hands-ai/openhands:main
ollama on colab
!pip install colab-xterm #https://pypi.org/project/colab-xterm/ %load_ext colabxterm
%xterm
!curl -fsSL https://ollama.com/install.sh | sh
!pip install pyngrok
from pyngrok import ngrok
Set the authentication token
ngrok.set_auth_token("xxxxxxxxxxxxxxxxxxxxxxx")
Open an ngrok tunnel to the Gazebo server port (11345)
public_url = ngrok.connect(3000) print("Public URL:", public_url)