Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Get your own Exchange token

When you use the Hub, JHE_TOKEN is set for you. If you’re using the client library from another computational environment, you’ll need to generate a token and set JHE_TOKEN yourself.

  1. Log in to the Exchange in your browser and open Data Portal.

  2. Click your user email in the bottom left, then Profile.

    The user menu at the bottom left of the Data Portal, with Profile and Log Out options
  3. Under Generate Bearer Token, click Create New and copy the token.

    The User Profile page, with a Create New button under Generate Bearer Token
  4. Copy your token and Exchange URL. In your notebook, set them before creating a client:

    from jupyterhealth_client import JupyterHealthClient
    
    JHE_URL = "https://<your-exchange-url>"
    JHE_TOKEN = "<your-token>"
    client = JupyterHealthClient(JHE_URL, token=JHE_TOKEN)

Tokens are time-limited, so create a new one when it expires.