title: Calling a C# library from python
body: <p>Anyone can share a working example on how to call a simple C# library (actually its WPF) from python code? (I have tried using IronPython and had too much trouble with unsupported  CPython library my python code is using so I thought of trying the other way around and calling my C# code from Python). </p>
  
  <p>Here is the example I was playing with: </p>
  
  <pre><code>using System.Runtime.InteropServices;
  using System.EnterpriseServices;
  
  namespace DataViewerLibrary
  {
      public interface ISimpleProvider
      {
         [DispIdAttribute(0)]
         void Start();
      }
  
      [ComVisible(true)]
      [ClassInterface(ClassInterfaceType.None)]
      public class PlotData : ServicedComponent, ISimpleProvider
      {
         public void Start()
         {
            Plot plotter = new Plot();
            plotter.ShowDialog();
         }
      }
  }
  </code></pre>
  
  <p>Plotter is a WPF windows that plots an Ellipse</p>
  
  <p>I don't know how to call this code from my python all. Any suggestions? </p>