[{"data":1,"prerenderedAt":172},["ShallowReactive",2],{"/py/run":3,"/py/run-surround":161},{"id":4,"title":5,"body":6,"description":127,"extension":128,"meta":129,"navigation":147,"path":157,"seo":158,"stem":159,"__hash__":160},"content/py/run.md","Python Extension Dictionary: run",{"type":7,"value":8,"toc":116},"minimark",[9],[10,11,15,16,15,26,47,51,111],"div",{"className":12,"id":14},[13],"dict_entry","run","\n  ",[17,18,20,21,15],"h3",{"id":19},"pyrun","\n    ",[22,23,25],"a",{"href":24},"#run","py:run",[27,28,32],"h4",{"id":29,"className":30},"pyrun-python-statement",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----pyrun-python-statement--",[38,39,42,43],"span",{"className":40},[41],"prim_example","py:run ",[44,45,46],"i",{},"python-statement",[48,49,50],"p",{},"Runs the given Python statements in the current Python session. To make multi-line Python code easier to run, this command will take multiple strings, each of which will be interpreted as a separate line of Python code. For instance:",[52,53,54],"pre",{},[55,56,57,58,63,66,67,72,66,74,78,66,80,84,66,86,90,66,92,96,66,98,102,66,104,108,110],"code",{},"(",[38,59,25],{"className":60},[61,62],"token","variable",[64,65],"br",{},"  ",[38,68,71],{"className":69},[61,70],"string","\"import matplotlib\"",[64,73],{},[38,75,77],{"className":76},[61,70],"\"matplotlib.use('TkAgg')\"",[64,79],{},[38,81,83],{"className":82},[61,70],"\"import numpy as np\"",[64,85],{},[38,87,89],{"className":88},[61,70],"\"import matplotlib.pyplot as plt\"",[64,91],{},[38,93,95],{"className":94},[61,70],"\"for i in range(10):\"",[64,97],{},[38,99,101],{"className":100},[61,70],"\"    plt.plot([ x ** i for x in np.arange(-1, 1, 0.1) ])\"",[64,103],{},[38,105,107],{"className":106},[61,70],"\"plt.show()\"",[64,109],{},")",[48,112,113,115],{},[55,114,25],{}," will wait for the statements to finish running before continuing. Thus, if you have long running Python code, NetLogo will pause while it runs.",{"title":117,"searchDepth":118,"depth":119,"links":120},"",5,3,[121],{"id":19,"depth":119,"text":122,"children":123},"\n    py:run\n  ",[124],{"id":29,"depth":125,"text":126},4,"\n    py:run python-statement\n  ","Documentation for the run primitive.","md",{"source":130,"metadataOutputPath":131,"projectConfig":132,"language":140,"inheritFrom":148,"output":147,"version":133,"layout":149,"dictionaryDisplayName":150,"dictionaryHomeDirectory":151,"indexFileURI":152,"currentItemId":14,"currentItemLabel":25,"primRoot":153,"icon":154,"extensionName":155,"assetsRoot":135},"../../external/extensions/py/py/run.md","content/py/run.metadata.yaml",{"version":133,"projectRoot":134,"scanRoot":135,"outputRoot":136,"defaults":137,"engine":143,"partials":144,"dedupeIdenticalDiskWrites":147},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/py","content",{"inheritFrom":138,"language":140,"output":141,"extension":128,"title":142,"version":133},[139],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":145,"extensions":146},[134],[143,128],true,[139],"catalog","Python Extension Dictionary","/py.html","/_index/extensions/py.txt","py","logos:python",{"shortName":153,"fullName":156},"Python","/py/run",{"title":5,"description":127},"py/run","sJhoDhnT_OuRGBOt6nS9RfOt7csAdllPDA0MEekagXM",[162,167],{"title":163,"path":164,"stem":165,"description":166},"Python Extension Dictionary: python3","/py/python3","py/python3","Documentation for the python3 primitive.",{"title":168,"path":169,"stem":170,"description":171},"Python Extension Dictionary: runresult","/py/runresult","py/runresult","Documentation for the runresult primitive.",1777657896996]