.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/music_cont_out_proxy_example/nest_script.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_music_cont_out_proxy_example_nest_script.py: Music example -------------- .. only:: html ---- Run this example as a Jupyter notebook: .. card:: :width: 25% :margin: 2 :text-align: center :link: https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fnest%2Fnest-simulator-examples&urlpath=lab%2Ftree%2Fnest-simulator-examples%2Fnotebooks%2Fnotebooks%2Fmusic_cont_out_proxy_example%2Fnest_script.ipynb&branch=main :link-alt: JupyterHub service .. image:: https://nest-simulator.org/TryItOnEBRAINS.png .. grid:: 1 1 1 1 :padding: 0 0 2 0 .. grid-item:: :class: sd-text-muted :margin: 0 0 3 0 :padding: 0 0 3 0 :columns: 4 See :ref:`our guide ` for more information and troubleshooting. ---- This example runs 2 NEST instances and one receiver instance. Neurons on the NEST instances are observed by the music_cont_out_proxy and their values are forwarded through MUSIC to the receiver. .. GENERATED FROM PYTHON SOURCE LINES 32-44 .. code-block:: Python import nest proxy = nest.Create("music_cont_out_proxy", 1) proxy.port_name = "out" proxy.set(record_from=["V_m"], interval=0.1) neuron_grp = nest.Create("iaf_cond_exp", 2) proxy.targets = neuron_grp neuron_grp[0].I_e = 300.0 neuron_grp[1].I_e = 600.0 nest.Simulate(200) .. _sphx_glr_download_auto_examples_music_cont_out_proxy_example_nest_script.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: nest_script.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: nest_script.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_