class_docstr: Environment class for Azure notebook environments.
  
  AzureNBEnvironment represents functionality to detect whether it is
  executed in a Azure notebook environment based on the `.nbvm` file.
  Additionally, it can display corresponding visualizations.
code: def __init__(self, service):
      self.base_url = None
      self.successfully_detected = False
  
      if not (
          os.path.exists(AzureNBEnvironment.nbvm_file_path)
          and os.path.isfile(AzureNBEnvironment.nbvm_file_path)
      ):
          self.successfully_detected = False
      else:
          self.nbvm = self.get_nbvm_config()
  
          if (
              "instance" not in self.nbvm
              or "domainsuffix" not in self.nbvm
          ):
              self.successfully_detected = False
          else:
              instance_name = self.nbvm["instance"]
              domain_suffix = self.nbvm["domainsuffix"]
              self.base_url = f"https://{instance_name}-{service.port}.{domain_suffix}"
              self.successfully_detected = True
              self.nbvm_origins = [
                  f"https://{instance_name}.{domain_suffix}",
                  f"https://{instance_name}-{service.port}.{domain_suffix}",
                  f"wss://{instance_name}.{domain_suffix}",
                  f"wss://{instance_name}-{service.port}.{domain_suffix}",
                  "https://ml.azure.com",
                  "https://dev.ml.azure.com",
                  "https://int.ml.azure.com",
              ]
  
file_path: responsible-ai-toolbox/rai_core_flask/rai_core_flask/environments/azure_nb_environment.py
imports: import os
  import re
  from flask_cors import CORS
  from rai_core_flask.environments.base_environment import BaseEnvironment
label_desc: Use image node_id 1 to create a new AzureNBEnvironment object from inherited base classes: BaseEnvironment with example: obj = AzureNBEnvironment(service)