Skip to main content

User details

Haiqu.user(raise_on_error=False)

Get the logged in user.
  • Parameters: raise_on_error (bool) — By default, human-friendly messages are returned. Set this to raise exceptions instead.
  • Returns: The logged in user, or an error message or None if in Jupyter Lab.
  • Return type: UserModel | str | None

Examples

Set user handle

Haiqu.set_handle(handle)

Choose your handle, which names you in the Haiqu cloud. Other users will see your handle, and you may not change it once it is set! A handle has 4 to 32 characters: lowercase letters, digits and hyphens. It starts with a letter, and each hyphen sits between two letters or digits (no repeated, leading, or trailing hyphens), as in example-user-2.
  • Parameters: handle (str) — Your new handle.
  • Returns: Your profile, with the handle.
  • Return type: UserModel
  • Raises: ValueError — If handle is not a valid handle, if it is reserved or already taken, or if you already have a different handle. The message gives the reason.

Examples