I do that here:
https://github.com/timkpaine/jupyterlab_templates/blob/master/src/index.ts#L126

> On Dec 3, 2018, at 14:46, Chen Wang <[email protected]> wrote:
> 
> So far I found this ContentsManager from @jupyterlab/services. But it seems 
> to only be able to create an empty file (newUntitled method) as well as 
> changing its filename (rename method).
> 
> I'm writing a jupyterlab extension. I want something that I can use not only 
> create a new empty file but also write content to that file in that extension.
> 
> Any thoughts? Many thanks!!
> 
> Best,
> Chen
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jupyter/55e33a52-cece-45cc-b646-393a86c8099d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/21DF7CF4-20DB-49E7-918B-7F5ECCAD69FC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to