Server Code
Client Code
You can include the following snippet in the html header sectionYou will receive the following in Chrome debugger if the message is sent successfully from the server.
Note: If you are using python.exe, that means the numpy and matplotlib packages need to be compatible with the "Release" version. If you are using python_d.exe then you need to ensure numpy and matplotlib is compatible with the "Debug" version. For debug version you can use C:\Program Files (x86)\Python3.6.3>python_d.exe -m pip install matplotlib to do correct package installation. Typical error one will get when the version is not compatible is ImportError: cannot import name 'multiarray'A good guideline for using debug version of the Python with release version of matplotlib from within Visual C++ Numpy issue
The picture below shows the end result in Swagger UI:
Microsoft.SharePoint.Client.CollectionNotInitializedException HResult=0x80131509 Message=The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. Source=Microsoft.SharePoint.Client.RuntimeThe are two reasons for such scenario: