| Start |
|---|
Python script to be called by C# application |
C# code calling Python script RemarksNote that in the example above data is serialized using MongoDB.Bson library that can be installed via NuGet manager. Otherwise, you can use any JSON serialization library of your choice. Below are inter-process communication implementation steps: I am using the inter-process communication between C# and Python scripts in one of my projects that allows calling Python scripts directly from Excel spreadsheets. The project utilizes ExcelDNA add-in for C# - Excel binding. The source-code is stored in the GitHub repository (opens new window). Below are links to wiki pages that provide an overview of the project and help to get started in 4 easy steps (opens new window).
I hope you find the example and the project useful. |
Read Article
https://develop.horje.com/learn/1434/reference