Skip to content
English - United States
  • There are no suggestions because the search field is empty.

How to view code in a DL KB article

This is a test to create markup code in an article and display as a preview page in the DL KB.

import warnings

with warnings.catch_warnings():
    warnings.simplefilter("ignore")
    
    import descarteslabs
    import descarteslabs.client.auth.cli as cli

    o = descarteslabs.common.dotdict.DotDict()
    o.command = "login"
    cli.LOGIN_URL = "https://iam.descarteslabs.com/auth/refresh_token"
    cli.auth_handler(o)