# Running a code block in Juno?

**URL:** https://discourse.julialang.org/t/running-a-code-block-in-juno/53010
**Category:** General Usage
**Tags:** juno
**Created:** [January 7, 2021, 9:38pm UTC](https://discourse.julialang.org/t/running-a-code-block-in-juno/53010 "2021-01-07T21:38:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [January 7, 2021, 9:38pm UTC](https://discourse.julialang.org/t/running-a-code-block-in-juno/53010/1 "2021-01-07T21:38:25Z")

</div>

Is there a way (such as a keystroke) to run a “cell” (or “block”) of code in Juno? For example, when using Spyder for Python, one can use the symbol `#&&` to create a “cell”. Clicking inside of that cell and using Ctrl+Enter runs all the code in that cell. Is there an analogous way to do this in Juno?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [January 7, 2021, 9:43pm UTC](https://discourse.julialang.org/t/running-a-code-block-in-juno/53010/2 "2021-01-07T21:43:07Z")

</div>

Yes. You can use `##` or `#%%` as cell delimiters (or configure one yourself) and run a cell with Alt-Enter (by default) or with the `Julia: Run Cell` command.

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [January 7, 2021, 10:08pm UTC](https://discourse.julialang.org/t/running-a-code-block-in-juno/53010/3 "2021-01-07T22:08:03Z")

</div>

Thanks! I had tried this earlier but I accidentally used the wrong cell delimiters. Glad to know it works!
