In the demo Jupyter notebook, we need to suppress SSL certificate warnings:
# Suppress SSL warnings
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
Could this be done within the bertron_client.py code itself, so this reduces the amount of work for the user?
Also, bertron_client.py uses the following base URL:
berton_base_url = "https://bertron-api.bertron.production.svc.spin.nersc.org/bertron/"
but the notebook uses:
# Initialize the BERtron client
client = BertronClient(base_url="https://bertron-api.bertron.production.svc.spin.nersc.org")
It is unclear why a different base_url needs to be specified. Could the public API URL be used as the default, so the notebook only needs to do this:
client = BertronClient()
In the demo Jupyter notebook, we need to suppress SSL certificate warnings:
Could this be done within the
bertron_client.pycode itself, so this reduces the amount of work for the user?Also,
bertron_client.pyuses the following base URL:berton_base_url = "https://bertron-api.bertron.production.svc.spin.nersc.org/bertron/"but the notebook uses:
It is unclear why a different
base_urlneeds to be specified. Could the public API URL be used as the default, so the notebook only needs to do this:client = BertronClient()