[{"data":1,"prerenderedAt":283},["ShallowReactive",2],{"/nw/with-context":3,"/nw/with-context-surround":272},{"id":4,"title":5,"body":6,"description":238,"extension":239,"meta":240,"navigation":258,"path":268,"seo":269,"stem":270,"__hash__":271},"content/nw/with-context.md","Networks Extension Dictionary: with-context",{"type":7,"value":8,"toc":227},"minimark",[9],[10,11,15,16,15,26,54,71,74,217],"div",{"className":12,"id":14},[13],"dict_entry","with-context","\n  ",[17,18,20,21,15],"h3",{"id":19},"nwwith-context","\n    ",[22,23,25],"a",{"href":24},"#with-context","nw:with-context",[27,28,32],"h4",{"id":29,"className":30},"nwwith-context-turtleset-linkset-command-block",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----nwwith-context-turtleset-linkset-command-block--",[38,39,42,43,47,48,47,51],"span",{"className":40},[41],"prim_example","nw:with-context ",[44,45,46],"i",{},"turtleset"," ",[44,49,50],{},"linkset",[44,52,53],{},"command-block",[55,56,57,58,61,62,64,65,67,68,70],"p",{},"Executes the ",[59,60,53],"em",{}," with the context temporarily set to ",[59,63,46],{}," and ",[59,66,50],{},".\nAfter ",[59,69,53],{}," finishes running, the previous context will be restored.",[55,72,73],{},"For example:",[75,76,77],"pre",{},[78,79,80,47,86,47,91,96,97,47,101,47,106,110,111,114,47,117,120,121,47,125,47,129,47,133,47,136,140,141,47,145,47,149,47,152,155,156,47,160,110,164,166,170,171,47,175,47,179,140,182,47,185,47,188,191,192,194,47,197,47,200,203,205,208,209,47,212,216],"code",{},[38,81,85],{"className":82},[83,84],"token","variable","observer>",[38,87,90],{"className":88},[83,89],"command","create-turtles",[38,92,95],{"className":93},[83,94],"number","3"," [ ",[38,98,100],{"className":99},[83,89],"create-links-with",[38,102,105],{"className":103},[83,104],"reporter","other",[38,107,109],{"className":108},[83,104],"turtles"," ]",[112,113],"br",{},[38,115,85],{"className":116},[83,84],[38,118,25],{"className":119},[83,84]," (",[38,122,124],{"className":123},[83,104],"turtle-set",[38,126,128],{"className":127},[83,104],"turtle",[38,130,132],{"className":131},[83,94],"0",[38,134,128],{"className":135},[83,104],[38,137,139],{"className":138},[83,94],"1",") (",[38,142,144],{"className":143},[83,104],"link-set",[38,146,148],{"className":147},[83,104],"link",[38,150,132],{"className":151},[83,94],[38,153,139],{"className":154},[83,94],") [ ",[38,157,159],{"className":158},[83,89],"show",[38,161,163],{"className":162},[83,84],"nw:get-context",[112,165],{},[38,167,169],{"className":168},[83,84],"observer:"," [(",[38,172,174],{"className":173},[83,84],"agentset,",[38,176,178],{"className":177},[83,94],"2",[38,180,109],{"className":181},[83,104],[38,183,174],{"className":184},[83,84],[38,186,139],{"className":187},[83,94],[38,189,148],{"className":190},[83,104],")",[112,193],{},[38,195,85],{"className":196},[83,84],[38,198,159],{"className":199},[83,89],[38,201,163],{"className":202},[83,84],[112,204],{},[38,206,169],{"className":207},[83,84]," [",[38,210,109],{"className":211},[83,104],[38,213,215],{"className":214},[83,104],"links","]",[55,218,219,220,223,224,226],{},"If you have NW extension code running in two forever buttons or ",[78,221,222],{},"loop"," blocks that each need to use different contexts, you should use ",[78,225,25],{}," in each to make sure they are operating in the correct context.",{"title":228,"searchDepth":229,"depth":230,"links":231},"",5,3,[232],{"id":19,"depth":230,"text":233,"children":234},"\n    nw:with-context\n  ",[235],{"id":29,"depth":236,"text":237},4,"\n    nw:with-context turtleset linkset command-block\n  ","Documentation for the with-context primitive.","md",{"source":241,"metadataOutputPath":242,"projectConfig":243,"language":251,"inheritFrom":259,"output":258,"version":244,"layout":260,"dictionaryDisplayName":261,"dictionaryHomeDirectory":262,"indexFileURI":263,"currentItemId":14,"currentItemLabel":25,"primRoot":264,"icon":265,"extensionName":266,"assetsRoot":246},"../../external/extensions/nw/nw/with-context.md","content/nw/with-context.metadata.yaml",{"version":244,"projectRoot":245,"scanRoot":246,"outputRoot":247,"defaults":248,"engine":254,"partials":255,"dedupeIdenticalDiskWrites":258},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/nw","content",{"inheritFrom":249,"language":251,"output":252,"extension":239,"title":253,"version":244},[250],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":256,"extensions":257},[245],[254,239],true,[250],"catalog","Networks Extension Dictionary","/nw.html","/_index/extensions/nw.txt","nw","i-lucide-network",{"shortName":264,"fullName":267},"Networks","/nw/with-context",{"title":5,"description":238},"nw/with-context","W8AKuPjnk4J0RlQc2zahK_0fbIM263epXZP6yNmJ6Yo",[273,278],{"title":274,"path":275,"stem":276,"description":277,"children":-1},"Networks Extension Dictionary: weighted-path-to","/nw/weighted-path-to","nw/weighted-path-to","Documentation for the weighted-path-to primitive.",{"title":279,"path":280,"stem":281,"children":-1,"description":282},"Palette Extension","/palette","palette","Documentation for the Palette extension.",1777657776001]