# Idea for moving code above cell content

**URL:** <https://talk.observablehq.com/t/idea-for-moving-code-above-cell-content/6096>\
**Category:** Feedback\
**Created:** [January 19, 2022, 12:37pm UTC](https://talk.observablehq.com/t/idea-for-moving-code-above-cell-content/6096 "2022-01-19T12:37:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keystroke](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/keystroke/32/4500_2.png) [@keystroke](https://talk.observablehq.com/u/keystroke)\
**Post date:** [January 19, 2022, 12:37pm UTC](https://talk.observablehq.com/t/idea-for-moving-code-above-cell-content/6096/1 "2022-01-19T12:37:15Z")

</div>

Hey folks,

In previous threads its been asked about options for changing whether code appears before or after the cell content:

> [@Show source after output](https://talk.observablehq.com/t/show-source-after-output/1857):
>
> This site is rather unique in that it shows the output of a code block before the code block rather than after. I am obviously not sure of the exact reasons this design was chosen, but what I can say is that it very often confuses me. Would it be possible to add a preference to swap the order of these?

I understand this has been discussed greatly by design team about how a user preference could create conflict with the design intention of the notebook authors. However, could it perhaps be a control for notebook authors themselves when they pin a cell open that they can pin it open either below (default) or above (a new option)? This would mean that each author could decide how to show it, and a user can always manually “un-pin” as they wish or “pin-reverse” any cell in any notebook.

You could even experiment with different pin options, like pin-left or pin-right of the cell for a side-by-side view of content. Maybe even something like “pin-float” that makes the cell code editor live “above” the notebook content and be draggable in the nearby html… but maybe some of that is getting a bit extreme 😆

But basically, I think “pin direction” or “pin style” could be a further cell option explored in the future and it looks like an easy enough itch to scratch for people.

Thanks!

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [May 9, 2022, 7:03pm UTC](https://talk.observablehq.com/t/idea-for-moving-code-above-cell-content/6096/2 "2022-05-09T19:03:53Z")

</div>

You may want to create an issue in the [feedback repo](https://github.com/observablehq/feedback/issues), otherwise this suggestion will likely get lost.

---

<div class="post-metadata">

**Author:** ![keystroke](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/keystroke/32/4500_2.png) [@keystroke](https://talk.observablehq.com/u/keystroke)\
**Post date:** [May 9, 2022, 9:16pm UTC](https://talk.observablehq.com/t/idea-for-moving-code-above-cell-content/6096/3 "2022-05-09T21:16:40Z")

</div>

Thanks for the tip will add this later!
