octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63657] Cell format in Jupyter notebooks


From: Guillaume
Subject: [Octave-bug-tracker] [bug #63657] Cell format in Jupyter notebooks
Date: Fri, 13 Jan 2023 12:34:12 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63657>

                 Summary: Cell format in Jupyter notebooks
                 Project: GNU Octave
               Submitter: 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
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 13 Jan 2023 05:34:09 PM UTC By: Guillaume <gyom>
According to the definition of code cells in Jupyter Notebooks:
https://nbformat.readthedocs.io/en/latest/format_description.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









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63657>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]