Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] Distinguish between markdown cell code blocks and Jupyter notebook code cells #9

Open
duanwilliam opened this issue Apr 21, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@duanwilliam
Copy link
Contributor

Currently, notebooks are converted into a long Markdown document, where Jupyter code cells are simply rendered as markdown code blocks. However, this means that if a markdown cell contains a code block, this code block is indistinguishable from a Jupyter code cell. There are several possible approaches to solve this issue:

  1. we could simply indent markdown code blocks by a small amount. this would be the simplest solution.

  2. we could modify the notebook rendering process to factor in the ideas of Jupyter "cells" - this way, we could additionally do things like adding the cell number on the left (idk what it's called, basically the execution order thing tho), or being able to collapse the output as you would in an actual Jupyter notebook.

cc @StoneT2000 what are your thoughts?

@duanwilliam duanwilliam self-assigned this Apr 21, 2022
@duanwilliam duanwilliam changed the title Distinguish between markdown cell code blocks and Jupyter notebook code cells [website] Distinguish between markdown cell code blocks and Jupyter notebook code cells Apr 21, 2022
@StoneT2000
Copy link
Member

I think the execution order would be nice but not necessary. And it would be nice to be able to collapse code output (especially if it's super long and we only want to either show none of it or last 20 lines or something)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants