class_docstr: Class for creating/accessing a DetailProfiler app hosted on SageMaker.
class_docstr_tok: ["Class","for","creating\/accessing","a","DetailProfiler","app","hosted","on","SageMaker","."]
docstr: Initialize a DetailProfilerApp object.
  
  Args:
      region (str): The name of the region e.g. us-east-1. If not specified,
          one is created using the default AWS configuration chain.
docstr_tok: ["Initialize","a","DetailProfilerApp","object",".","Args",":","region","(","str",")",":","The","name","of","the","region","e.g",".","us-east-1",".","If","not","specified",",","one","is","created","using","the","default","AWS","configuration","chain","."]
code: def __init__(self, region: Optional[str] = None):
      """Initialize a DetailProfilerApp object.
  
      Args:
          region (str): The name of the region e.g. us-east-1. If not specified,
              one is created using the default AWS configuration chain.
      """
      if region:
          self.region = region
      else:
          try:
              self.region = Session().boto_region_name
          except ValueError:
              raise ValueError(
                  "Failed to get region from default config. Please eihter pass region "
                  "as an input argument or setup the local AWS config."
              )
  
      self._domain_id = None
      self._user_profile_name = None
      self._valid_domain_and_user = False
      self._get_domain_and_user()
  
file_path: sagemaker-python-sdk/src/sagemaker/interactive_apps/detail_profiler_app.py
imports: from __future__ import absolute_import
  import json
  import logging
  import os
  import re
  from typing import Optional
  from sagemaker.session import Session, NOTEBOOK_METADATA_FILE
label_desc: Use image node_id 1 to create a new DetailProfilerApp object from inherited base classes: object with example: obj = DetailProfilerApp(region)