Skip to content

Feat: Make copy paste friendly#8

Merged
tnwei merged 1 commit intodevfrom
feat/make-copy-paste-friendly
Dec 30, 2025
Merged

Feat: Make copy paste friendly#8
tnwei merged 1 commit intodevfrom
feat/make-copy-paste-friendly

Conversation

@tnwei
Copy link
Copy Markdown
Owner

@tnwei tnwei commented Dec 30, 2025

Resolves #2 by changing the ascii box drawn around each code cell to just a single line header.

Before:

    In [1]:                                                              
    ╭───────────────────────────────────────────────────────────────╮    
    │ # Simple print output                                         │    
    │ print("Hello from nbread test!")                              │    
    │ print("Testing print output")                                 │    
    ╰───────────────────────────────────────────────────────────────╯    
    Hello from nbread test!                                              
    Testing print output                                                 
    In [2]:                                                              
    ╭───────────────────────────────────────────────────────────────╮    
    │ # Execute result (return value)                               │    
    │ x = 40 + 2                                                    │    
    │ x                                                             │    
    ╰───────────────────────────────────────────────────────────────╯    
    Out[2]:                                                              
    42                                                                                                            

After:

    ── Code [1] ──────────────────────
    # Simple print output                                                                                                                                                    
    print("Hello from nbread test!")                                                                                                                                         
    print("Testing print output")                                                                                                                                            
                                                                                                                                                                             
    Out[1]:                                                                                                                                                                  
    Hello from nbread test!                                                                                                                                                  
    Testing print output                                                                                                                                                     
                                                                                                                                                                             
    ── Code [2] ──────────────────────
    # Execute result (return value)                                                                                                                                          
    x = 40 + 2                                                                                                                                                               
    x                                                                                                                                                                        
                                                                                                                                                                             
    Out[2]:                                                                                                                                                                  
    42                                                                                                                                                                       
                   

Less aesthetic, but more practical. I mean, this sentiment held true since I opened the issue two years ago. Sorry I just got around to scratch this itch

@tnwei tnwei merged commit 747bca0 into dev Dec 30, 2025
@tnwei tnwei deleted the feat/make-copy-paste-friendly branch December 30, 2025 16:07
@tnwei tnwei mentioned this pull request Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant