<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Arial",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Arial",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I try to run pykst from PyCharm <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I wrote the code:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#2B2B2B"><span style="font-size:10.0pt;font-family:"Courier New";color:#CC7832;mso-fareast-language:#1000">import
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">pykst
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#CC7832;mso-fareast-language:#1000">as
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">kst<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:gray;mso-fareast-language:#1000"># start a kst session with the arbitrary name "TestSinX"<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">client=kst.Client(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A5C261;mso-fareast-language:#1000">"TestSinX"</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">)<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:gray;mso-fareast-language:#1000"># inside kst, create the x vector and the equation<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">v1 = client.new_generated_vector(-</span><span style="font-size:10.0pt;font-family:"Courier New";color:#6897BB;mso-fareast-language:#1000">10</span><span style="font-size:10.0pt;font-family:"Courier New";color:#CC7832;mso-fareast-language:#1000">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#6897BB;mso-fareast-language:#1000">10</span><span style="font-size:10.0pt;font-family:"Courier New";color:#CC7832;mso-fareast-language:#1000">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#6897BB;mso-fareast-language:#1000">1000</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">)<br>
e1 = client.new_equation(v1</span><span style="font-size:10.0pt;font-family:"Courier New";color:#CC7832;mso-fareast-language:#1000">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A5C261;mso-fareast-language:#1000">"sin(x)"</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">)<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:gray;mso-fareast-language:#1000"># inside kst, create a curve, a plot, and add the curve to the plot<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">c1 = client.new_curve(e1.x()</span><span style="font-size:10.0pt;font-family:"Courier New";color:#CC7832;mso-fareast-language:#1000">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#1000">e1.y())<br>
p1 = client.new_plot()<br>
p1.add(c1)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">but I always get an exception : Process finished with exit code -1073741819 (0xC0000005) on the first line (import pykst as kst)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I should I do<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can you please help me </span><span lang="EN-US" style="font-family:"Segoe UI Emoji",sans-serif">☹</span><span lang="EN-US">?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000">Oron Tamir | Aquarius Engines</span><span lang="HE" dir="RTL" style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000"><br>
</span><span style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000">Software Engineer<span lang="HE" dir="RTL"><br>
</span></span><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000">Mob: +972523407915
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000">Office: +9727471189</span><span style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000"><a href="http://www.aquariusengines.com"><span style="color:#0563C1">www.aquariusengines.com</span></a></span><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000">         
</span><span style="font-family:"Calibri",sans-serif;mso-fareast-language:#1000"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>