# Directly interacting with python console

**URL:** https://discourse.slicer.org/t/directly-interacting-with-python-console/34455
**Category:** Support
**Created:** [February 21, 2024, 6:30pm UTC](https://discourse.slicer.org/t/directly-interacting-with-python-console/34455 "2024-02-21T18:30:20Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 22, 2024, 4:45am UTC](https://discourse.slicer.org/t/directly-interacting-with-python-console/34455/7 "2024-02-22T04:45:02Z")

</div>

> [@muratmaga](#):
>
> is there a way to have jupiter notebooks to save things as at least mostly pyton + markdown, as opposed to JSON? JSON just makes interacting with the code on github much more difficult.

Even though jupyter notebook (.pynb) file content is in json, most editors, including GitHub’s online editor allows viewing and _editing_ the actual formatted content. Example online viewers and editors:

- [Github online in-place viewer](https://github.com/Slicer/SlicerNotebooks/blob/master/01_Data_loading_and_display.ipynb)
- [Github online in-place editor](https://github.dev/Slicer/SlicerNotebooks/blob/master/01_Data_loading_and_display.ipynb)
- [nbviewer for very fast viewing of large notebooks](https://nbviewer.org/github/Slicer/SlicerNotebooks/blob/master/01_Data_loading_and_display.ipynb)

Interestingly, a new notebook variant, [marimo](https://discourse.slicer.org/t/new-python-notebook-library/33758), uses Python code instead of json as source format. However, I’m not sure if it can run code inside the Python environment in the running Slicer process.

---

_[View the full topic](https://discourse.slicer.org/t/directly-interacting-with-python-console/34455)._
