class_docstr: CmdStanPy sampling wrapper base class.
  
  See the documentation on  :class:`~arviz.SamplingWrapper` for a more detailed
  description. An example of ``CmdStanPySamplingWrapper`` usage can be found
  in the :ref:`cmdstanpy_refitting` notebook.
  
  Warnings
  --------
  Sampling wrappers are an experimental feature in a very early stage. Please use them
  with caution.
class_docstr_tok: ["CmdStanPy","sampling","wrapper","base","class",".","See","the","documentation","on",":","class",":","`","~arviz.SamplingWrapper","`","for","a","more","detailed","description",".","An","example","of","``","CmdStanPySamplingWrapper","``","usage","can","be","found","in","the",":","ref",":","`","cmdstanpy_refitting","`","notebook",".","Warnings","--","--","--","--","Sampling","wrappers","are","an","experimental","feature","in","a","very","early","stage",".","Please","use","them","with","caution","."]
docstr: Initialize the CmdStanPySamplingWrapper.
  
  Parameters
  ----------
  data_file : str
      Filename on which to store the data for every refit.
      It's contents will be overwritten.
docstr_tok: ["Initialize","the","CmdStanPySamplingWrapper",".","Parameters","--","--","--","--","--","data_file",":","str","Filename","on","which","to","store","the","data","for","every","refit",".","It","'s","contents","will","be","overwritten","."]
code: def __init__(self, data_file, **kwargs):
      """Initialize the CmdStanPySamplingWrapper.
  
      Parameters
      ----------
      data_file : str
          Filename on which to store the data for every refit.
          It's contents will be overwritten.
      """
      super().__init__(**kwargs)
      self.data_file = data_file
  
file_path: arviz/arviz/wrappers/wrap_stan.py
imports: from typing import Union
  from ..data import from_cmdstanpy, from_pystan
  from .base import SamplingWrapper
label_desc: Use image node_id 1 to create a new CmdStanPySamplingWrapper object from inherited base classes: StanSamplingWrapper with example: obj = CmdStanPySamplingWrapper(data_file)