Jupyterlab extension: Is there a javascript api for writing content to file?

32 views
Skip to first unread message

Chen Wang

unread,
Dec 3, 2018, 2:46:24 PM12/3/18
to Project Jupyter
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


Tim Paine

unread,
Dec 3, 2018, 2:48:31 PM12/3/18
to jup...@googlegroups.com
--
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 jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
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.

Chen Wang

unread,
Dec 3, 2018, 2:58:32 PM12/3/18
to Project Jupyter
Ohh thank you!!
Reply all
Reply to author
Forward
0 new messages