- Create forum post
- Find other, similar, integrations
- Decide what API functions would be useful
- Make git repo
- Use uplink to create an API wrapper
Ensure that the requirement for working with envs are installed sudo apt install python3-venv
Work out the python version you want to work with python --version or python3 --version or which python
Once you have chosen the python version cd to the directory you want the env to be stored in
run /path/to/my/python3 -m venv nameOfEnv of course this may just be python not python3
/usr/bin/python3| .markup.jupyter { | |
| pre { line-height: 125%; margin: 0; } | |
| td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } | |
| span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } | |
| td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } | |
| span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } | |
| .highlight .hll { background-color: #ffffcc } | |
| .highlight { background: #f8f8f8; } | |
| .highlight .c { color: #408080; font-style: italic } /* Comment */ | |
| .highlight .err { border: 1px solid #FF0000 } /* Error */ |
Install the packages for compiling
$ sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev wget
Set the python version you want
$ version=3.8.5
Download
$ wget https://www.python.org/ftp/python/$version/Python-$version.tgz ~/
Extract the file
Inspired from this guide
Navigate to https://myservices.us.oraclecloud.com/mycloud/signup and input your information and click next.
💡 If you don’t want to use your card number for verification you can signup for free at http://bit.ly/privacysignup and get $5 for free at the same time.
Finish the signup process (no more than 5 minutes) and you’re good to go.
| .markup.jupyter { /*! | |
| * | |
| * Twitter Bootstrap | |
| * | |
| */ | |
| /*! | |
| * Bootstrap v3.3.7 (http://getbootstrap.com) | |
| * Copyright 2011-2016 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| */ |
| import sys | |
| if sys.version_info[0] < 3: | |
| raise Exception("Python 3 or a more recent version is required.") | |
| # this will serve as a dictionary of what each tile face is worth | |
| scores = {"A": 1 , "B": 3 , "C": 3 , "D": 2 , | |
| "E": 1 , "F": 4 , "G": 2 , "H": 4 , | |
| "I": 1 , "J": 8 , "K": 5 , "L": 1 , | |
| "M": 3 , "N": 1 , "O": 1 , "P": 3 , |
| import itertools | |
| import sys | |
| if sys.version_info[0] < 3: | |
| raise Exception("Python 3 or a more recent version is required.") | |
| class Deck: | |
| # a class that takes an array of True/False of any length. True equals face down | |
| def __init__(self,cards): |