Check Update

The following code prints the your local AISpace2 version and the latest version available on the website.


In [ ]:
import requests, re
from bs4 import BeautifulSoup
from aispace2 import __version__

req = requests.get("https://aispace2.github.io/AISpace2/install.html")
html_info = str(BeautifulSoup(req.content, "html.parser").find(id="install-current-version"))
new_version = re.findall("\d+\.\d+\.\d+", html_info)[0]

print("Your version: " + __version__)
print("Latest version: " + new_version)

In [ ]: