I have a low-end PC and it takes ages to execute my python project which takes much less time when running on Google Colab. So, is there a way to run this project in google-Colab.
My project :
I want to excute this project with this comands like in the terminal:
python -m minihit --help
python -m minihit input.txt
python -m minihit input.txt --render
python -m minihit input.txt --render --outprefix=/path/to/your/minimal_hitting_sets
python -m minihit input.txt --prune
python -m minihit input.txt --sort --render
You can directly upload your .py files to google colab or you can mount the google drive on your google colab:
from google.colab import drive
drive.mount('/content/drive/')
When you run, upper code, the authorization page is opened and you need to allow it.
/content/drive/MyDrive/
After sync with your drive, and import your file:
import minihit
you can reach your project with "!"character.
!python -m minihit --help
!python -m minihit input.txt
!python -m minihit input.txt --render
!python -m minihit input.txt --render --outprefix=/path/to/your/minimal_hitting_sets
!python -m minihit input.txt --prune
!python -m minihit input.txt --sort --render
I recommend that this colab will help you a lot:
https://colab.research.google.com/drive/12qC2abKAIAlUM_jNAokGlooKY-idbSxi#scrollTo=X9_OYgn8Cots
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.