class_docstr: Make interpolators for operators like :meth:`.affine`.
  
      
docstr: Make a new interpolator by name.
  
  Make a new interpolator from the libvips class nickname. For example::
  
      inter = pyvips.Interpolator.new('bicubic')
  
  You can get a list of all supported interpolators from the command-line
  with::
  
      $ vips -l interpolate
  
  See for example :meth:`.affine`.
docstr_tok: ["Make","a","new","interpolator","by","name",".","Make","a","new","interpolator","from","the","libvips","class","nickname",".","For","example",":",":","inter","=","pyvips.Interpolator.new","(","'bicubic","'",")","You","can","get","a","list","of","all","supported","interpolators","from","the","command-line","with",":",":","$","vips","-l","interpolate","See","for","example",":","meth",":","`",".affine","`","."]
code: def new(name):
      """Make a new interpolator by name.
  
      Make a new interpolator from the libvips class nickname. For example::
  
          inter = pyvips.Interpolator.new('bicubic')
  
      You can get a list of all supported interpolators from the command-line
      with::
  
          $ vips -l interpolate
  
      See for example :meth:`.affine`.
  
      """
  
      # logger.debug('VipsInterpolate.new: name = %s', name)
  
      vi = vips_lib.vips_interpolate_new(_to_bytes(name))
      if vi == ffi.NULL:
          raise Error("no such interpolator {0}".format(name))
  
      return Interpolate(vi)
  
imports: from __future__ import division
  import pyvips
  from pyvips import ffi, vips_lib, Error, _to_bytes
label_desc: Use image node_id 2 for calling the Interpolate obj's underlying member method code with example usage: obj.new(name) and returns: Interpolate