pub struct JupyterNotebook {
pub metadata: JupyterMetadata,
pub nbformat: u32,
pub nbformat_minor: u32,
pub cells: Vec<JupyterCell>,
}Expand description
A Jupyter notebook.
Fields§
§metadata: JupyterMetadataNotebook metadata
nbformat: u32Format version (always 4)
nbformat_minor: u32Minor format version
cells: Vec<JupyterCell>Notebook cells
Implementations§
Source§impl JupyterNotebook
impl JupyterNotebook
Sourcepub fn write_to_file(&self, path: impl AsRef<Path>) -> SyncResult<()>
pub fn write_to_file(&self, path: impl AsRef<Path>) -> SyncResult<()>
Write the notebook to a file.
Sourcepub fn read_from_file(path: impl AsRef<Path>) -> SyncResult<Self>
pub fn read_from_file(path: impl AsRef<Path>) -> SyncResult<Self>
Read a notebook from a file.
Trait Implementations§
Source§impl Clone for JupyterNotebook
impl Clone for JupyterNotebook
Source§fn clone(&self) -> JupyterNotebook
fn clone(&self) -> JupyterNotebook
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JupyterNotebook
impl Debug for JupyterNotebook
Source§impl Default for JupyterNotebook
impl Default for JupyterNotebook
Source§impl<'de> Deserialize<'de> for JupyterNotebook
impl<'de> Deserialize<'de> for JupyterNotebook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JupyterNotebook
impl RefUnwindSafe for JupyterNotebook
impl Send for JupyterNotebook
impl Sync for JupyterNotebook
impl Unpin for JupyterNotebook
impl UnwindSafe for JupyterNotebook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more