On Wed, Oct 30, 2024 at 8:48 AM HaveF HaveF <iamapla...@gmail.com> wrote:

>
>> I don't love seeing the leading "#"s in the headline, though. E.g., ##
>> 1. Specifying element type.
>>
>
> The starting point of my suggestion is that since all our nodes are at the
> same level, we can only know which level it is through the `#` in the
> markdown heading, which is convenient for quickly finding the location when
> switching between jupyter lab and Leo. In addition, this mark can also be
> distinguished from ordinary cells.
>

I agree with you, not Thomas. The '#' markers (in the headlines of markdown
nodes) are *exactly* what we want to see. This page of example notebooks
<https://github.com/rahulbot/notebook-examples?tab=readme-ov-file> contains
several .ipynb files. To see the sample notebooks properly, *launch jupyter
from the button on this page*!

For example, I downloaded (from jupyter) *example-data-analysis.ipynb* and
rearranged the resulting nodes by hand. The child nodes became:

<< prefix >>
# Loading and Analyzing Data
## Load the air quality data
## Aggregate and average MA data by city
## Visually Inspect the Data

All the python nodes became children of these markdown "topic" nodes.
What could be clearer than this?

Edward

P.S. It's more "logical" to move the "##" nodes so they are children of the
# Loading and Analyzing Data. But this is a judgement call. I don't want
@jupytext to indent nodes automatically because there is no single "right"
way.

Lastly, reorganizing the outline can be done (within Leo) at any time. It
takes only seconds to do so.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS13Fjp4LHN2skzuHLrh_-QCpbU-hZeN%2BRmgCNN0EgM2Yg%40mail.gmail.com.

Reply via email to