[{"data":1,"prerenderedAt":282},["ShallowReactive",2],{"/py/set":3,"/py/set-surround":271},{"id":4,"title":5,"body":6,"description":237,"extension":238,"meta":239,"navigation":257,"path":267,"seo":268,"stem":269,"__hash__":270},"content/py/set.md","Python Extension Dictionary: set",{"type":7,"value":8,"toc":226},"minimark",[9],[10,11,15,16,15,26,51,55,58,109,112,223],"div",{"className":12,"id":14},[13],"dict_entry","set","\n  ",[17,18,20,21,15],"h3",{"id":19},"pyset","\n    ",[22,23,25],"a",{"href":24},"#set","py:set",[27,28,32],"h4",{"id":29,"className":30},"pyset-variable-name-value",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----pyset-variable-name-value--",[38,39,42,43,47,48],"span",{"className":40},[41],"prim_example","py:set ",[44,45,46],"i",{},"variable-name"," ",[44,49,50],{},"value",[52,53,54],"p",{},"Sets a variable in the Python session with the given name to the given NetLogo value. NetLogo objects will be converted to Python objects as expected.",[52,56,57],{},"All vanilla NetLogo objects are supported, but objects from other extensions, even other bundled extensions, are not supported.",[59,60,61],"pre",{},[62,63,64,47,69,74,75,47,80,47,84,88,89,92,47,97,47,101,47,104],"code",{},[38,65,25],{"className":66},[67,68],"token","variable",[38,70,73],{"className":71},[67,72],"string","\"x\""," [",[38,76,79],{"className":77},[67,78],"number","1",[38,81,83],{"className":82},[67,78],"2",[38,85,87],{"className":86},[67,78],"3","]",[90,91],"br",{},[38,93,96],{"className":94},[67,95],"command","show",[38,98,100],{"className":99},[67,68],"py:runresult",[38,102,73],{"className":103},[67,72],[38,105,108],{"className":106},[67,107],"comment",";; Shows [1 2 3]",[52,110,111],{},"Agents are converted into dictionaries with elements for each agent variable. Agentsets are converted into lists of agent dictionaries.",[59,113,114],{},[62,115,116,74,121,47,125,88,129,74,135,139,140,142,47,146,149,150,47,153,47,158,47,162,47,165,47,169,139,173,175,47,179,47,182,149,185,47,188,47,191,139,195,197,47,200,47,204,47,207,210,212,47,215,47,219],{},[38,117,120],{"className":118},[67,119],"keyword","breed",[38,122,124],{"className":123},[67,68],"goats",[38,126,128],{"className":127},[67,68],"goat",[38,130,132,134],{"className":131},[67,119],[90,133],{},"goats-own",[38,136,138],{"className":137},[67,68],"energy"," ]",[90,141],{},[38,143,145],{"className":144},[67,68],"create-goats",[38,147,79],{"className":148},[67,78]," [ ",[38,151,14],{"className":152},[67,95],[38,154,157],{"className":155},[67,156],"reporter","heading",[38,159,161],{"className":160},[67,78],"0",[38,163,14],{"className":164},[67,95],[38,166,168],{"className":167},[67,156],"color",[38,170,172],{"className":171},[67,78],"75",[90,174],{},[38,176,178],{"className":177},[67,95],"ask",[38,180,128],{"className":181},[67,68],[38,183,161],{"className":184},[67,78],[38,186,14],{"className":187},[67,95],[38,189,138],{"className":190},[67,68],[38,192,194],{"className":193},[67,78],"42",[90,196],{},[38,198,25],{"className":199},[67,68],[38,201,203],{"className":202},[67,72],"\"goat\"",[38,205,128],{"className":206},[67,68],[38,208,161],{"className":209},[67,78],[90,211],{},[38,213,100],{"className":214},[67,68],[38,216,218],{"className":217},[67,72],"\"str(goat)\"",[38,220,222],{"className":221},[67,107],";; Should output: \"{'WHO': 0, 'COLOR': 75, 'HEADING': 0, 'XCOR': 0, 'YCOR': 0, 'SHAPE': 'default', 'LABEL': '', 'LABEL-COLOR': 9.9, 'BREED': 'GOATS', 'HIDDEN?': False, 'SIZE': 1, 'PEN-SIZE': 1, 'PEN-MODE': 'up', 'ENERGY': 42}\"",[52,224,225],{},"Agents with variables containing references to agentsets will have those variables converted into the string representation of that agentset.",{"title":227,"searchDepth":228,"depth":229,"links":230},"",5,3,[231],{"id":19,"depth":229,"text":232,"children":233},"\n    py:set\n  ",[234],{"id":29,"depth":235,"text":236},4,"\n    py:set variable-name value\n  ","Documentation for the set primitive.","md",{"source":240,"metadataOutputPath":241,"projectConfig":242,"language":250,"inheritFrom":258,"output":257,"version":243,"layout":259,"dictionaryDisplayName":260,"dictionaryHomeDirectory":261,"indexFileURI":262,"currentItemId":14,"currentItemLabel":25,"primRoot":263,"icon":264,"extensionName":265,"assetsRoot":245},"../../external/extensions/py/py/set.md","content/py/set.metadata.yaml",{"version":243,"projectRoot":244,"scanRoot":245,"outputRoot":246,"defaults":247,"engine":253,"partials":254,"dedupeIdenticalDiskWrites":257},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/py","content",{"inheritFrom":248,"language":250,"output":251,"extension":238,"title":252,"version":243},[249],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":255,"extensions":256},[244],[253,238],true,[249],"catalog","Python Extension Dictionary","/py.html","/_index/extensions/py.txt","py","logos:python",{"shortName":263,"fullName":266},"Python","/py/set",{"title":5,"description":237},"py/set","G2Esg6VJnTkMjbNphPawEjKe_l6p6EVgwx7FToqPI88",[272,277],{"title":273,"path":274,"stem":275,"description":276},"Python Extension Dictionary: runresult","/py/runresult","py/runresult","Documentation for the runresult primitive.",{"title":278,"path":279,"stem":280,"description":281},"Python Extension Dictionary: setup","/py/setup","py/setup","Documentation for the setup primitive.",1777657896523]