How to load a notebook model without displaying it

Dear Jovian fellows,

I’m building a jupyter lab extension.
I need to load a notebook and customize its displaying while keeping its original structure to execute it when necessary.

I have two issues / questions someone in this forum would maybe be able to help me with.

  • I’m using a DocumentManager to open the markdown file as a notebook, but then the widget is systematically displayed: is there a method allowing to load a notebook object, so I can access to its cell array and the metadata, without automatically converting it into a widget?
  • If I understand correctly customizing the visualization of a notebook corresponds to the implementation of a custom WidgetFactory from the IWidgetFactory interface … does this make sense?

Thanks for listening!