labtools/_src/plotting.py
def altair_saver():
  """ Wrapper for altair_saver to patch vega paths for saving pdfs

  altair-saver requires vega-cli and vega-lite to be in your path *before*
  importing altair_saver. This function adds the vega-cli and vega-lite binaries
  to your path and returns the imported altaier_saver package.

  """
  # patch paths to vega binaries
  runfiles_dir = Path(os.getenv('PWD', os.getcwd())).parent
  node_modules = runfiles_dir / 'labtools__npm/node_modules'
  os.environ["PATH"] += f":{node_modules}/vega-cli/bin"
  os.environ["PATH"] += f":{node_modules}/vega-lite/bin"

  # return the module
  return maybe_import('altair_saver')
 Wrapper for altair_saver to patch vega paths for saving pdfs

  altair-saver requires vega-cli and vega-lite to be in your path *before*
  importing altair_saver. This function adds the vega-cli and vega-lite binaries
  to your path and returns the imported altaier_saver package.

  
Wrapper for altair_saver to patch vega paths for saving pdfs
altair-saver requires vega-cli and vega-lite to be in your path *before
importing altair_saver. This function adds the vega-cli and vega-lite binaries
to your path and returns the imported altaier_saver package.
Wrapper for altair_saver to patch vega paths for saving pdfs altair - saver requires vega - cli and vega - lite to be in your path * before importing altair_saver . This function adds the vega - cli and vega - lite binaries to your path and returns the imported altaier_saver package .
def altair_saver():
  runfiles_dir = Path(os.getenv('PWD', os.getcwd())).parent
  node_modules = runfiles_dir / 'labtools__npm/node_modules'
  os.environ["PATH"] += f":{node_modules}/vega-cli/bin"
  os.environ["PATH"] += f":{node_modules}/vega-lite/bin"
  return maybe_import('altair_saver')
def altair_saver ( ) : runfiles_dir = Path ( os . getenv ( 'PWD' , os . getcwd ( ) ) ) . parent node_modules = runfiles_dir / 'labtools__npm/node_modules' os . environ [ "PATH" ] += f":{node_modules}/vega-cli/bin" os . environ [ "PATH" ] += f":{node_modules}/vega-lite/bin" return maybe_import ( 'altair_saver' )
Wrapper for altair_saver to patch vega paths for saving pdfs
altair-saver requires vega-cli and vega-lite to be in your path *before
importing altair_saver.
Wrapper for altair_saver to patch vega paths for saving pdfs altair - saver requires vega - cli and vega - lite to be in your path * before importing altair_saver .
""" Wrapper for altair_saver to patch vega paths for saving pdfs

  altair-saver requires vega-cli and vega-lite to be in your path *before*
  importing altair_saver. This function adds the vega-cli and vega-lite binaries
  to your path and returns the imported altaier_saver package.

  """ # patch paths to vega binaries # return the module