diff --git a/tutorials/in_depth/tutorial04_execution.ipynb b/tutorials/in_depth/tutorial04_execution.ipynb index 8cc62da78..9d916cbee 100644 --- a/tutorials/in_depth/tutorial04_execution.ipynb +++ b/tutorials/in_depth/tutorial04_execution.ipynb @@ -293,6 +293,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "pycharm": { @@ -302,7 +303,11 @@ "source": [ "3. Compile stage: After a _Process_ has been configured, it needs to be compiled to\n", "become executable. After the compilation stage, the state of the _Process_ can\n", - "still be manipulated and inspected." + "still be manipulated and inspected.\n", + "\n", + "4. Execution stage: When compilation is complete, _Processes_ can be\n", + "executed. The execution stage ensures that the (prior) compilation stage has\n", + "been completed and otherwise invokes it." ] }, { @@ -315,6 +320,7 @@ }, "outputs": [], "source": [ + "# Compile stage\n", "from lava.magma.compiler.compiler import Compiler\n", "from lava.magma.core.run_configs import Loihi1SimCfg\n", "\n", @@ -322,32 +328,10 @@ "compiler = Compiler()\n", "\n", "# compile the Process (and all connected Processes) into an executable\n", - "executable = compiler.compile(lif2, run_cfg=Loihi1SimCfg())" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "pycharm": { - "name": "#%% md\n" - } - }, - "source": [ - "4. Execution stage: When compilation is complete, _Processes_ can be\n", - "executed. The execution stage ensures that the (prior) compilation stage has\n", - "been completed and otherwise invokes it." - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "pycharm": { - "name": "#%%\n" - } - }, - "outputs": [], - "source": [ + "executable = compiler.compile(lif2, run_cfg=Loihi1SimCfg())\n", + "\n", + "# Execution stage\n", + "\n", "from lava.magma.runtime.runtime import Runtime\n", "from lava.magma.core.run_conditions import RunSteps\n", "from lava.magma.runtime.message_infrastructure.message_interface_enum import ActorType\n", diff --git a/tutorials/in_depth/tutorial05_connect_processes.ipynb b/tutorials/in_depth/tutorial05_connect_processes.ipynb index cb4ce250e..d862f3bfc 100644 --- a/tutorials/in_depth/tutorial05_connect_processes.ipynb +++ b/tutorials/in_depth/tutorial05_connect_processes.ipynb @@ -125,7 +125,6 @@ " def run_spk(self):\n", " data = np.array([1, 2])\n", " self.out.send(data)\n", - " print(\"Sent output data of P1: {}\".format(data))\n", "\n", "\n", "\n", @@ -137,8 +136,7 @@ " inp: PyInPort = LavaPyType(PyInPort.VEC_DENSE, int)\n", "\n", " def run_spk(self):\n", - " in_data = self.inp.recv()\n", - " print(\"Received input data for P2: {}\".format(in_data))" + " in_data = self.inp.recv()" ] }, {