-
I am attempting to use the package in colab notebook but facing some minor issues. Setup steps: ## Preparation
import os
os.environ['CONTAINER'] = 'native'
os.environ['VERBOSE'] = '1'
os.environ['GITHUB_ACCESS_TOKEN'] = input()
## elan and lean installation
# Download the binary
!wget https://github.com/leanprover/elan/releases/download/v3.1.1/elan-x86_64-unknown-linux-gnu.tar.gz
# Extract the content
!tar -xzf elan-x86_64-unknown-linux-gnu.tar.gz
# Move the the local bin directory
!mv elan-init /usr/local/bin/elan
# Verify the downloaded elan
!/usr/local/bin/elan --version
# Download Lean
!/usr/local/bin/elan default stable
# Check the lean version
!elan which lean
# Add the above path to the environment
lean_bin_path = '/root/.elan/toolchains/stable/bin'
os.environ['PATH'] += ':' + lean_bin_path
# Check the lean version
!lean --version
## Test LeanDojo
!pip install lean-dojo Initial issue: running as the root
This will trigger an error due to Subsequent issue: tracing repository stalls
Below are the logs:
And it looks like the process gets stuck at |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I haven't used Colab a lot before. How to edit a source file on Colab? |
Beta Was this translation helpful? Give feedback.
-
It looks like Colab cannot find os.system("lake --help") @ZIYU-DEEP Do you have the same issue? |
Beta Was this translation helpful? Give feedback.
-
@yangky11 the environment works! here is a colab version of demo-lean4.ipynb. |
Beta Was this translation helpful? Give feedback.
@yangky11 the environment works! here is a colab version of demo-lean4.ipynb.