bugGNU Octave - Bugs: bug #63657, Cell format in Jupyter notebooks

 
 

bug #63657: Cell format in Jupyter notebooks

Submitter:  Guillaume <gyom>
Submitted:  Fri 13 Jan 2023 05:34:09 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

  Spam posted by anonymous
Fri 13 Jan 2023 05:34:09 PM UTC, original submission:  

According to the definition of code cells in Jupyter Notebooks:
https://nbformat. ... n.html#cell-types
their 'source' value can be "single string or [list, of, strings]". It seems that jupyter_notebook only expects the latter. I fixed it by adding the following in the constructor:


if (! iscell (nbcell.source))
  obj.notebook.cells{i}.source = {obj.notebook.cells{i}.source};
endif


Guillaume <gyom>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code