I think I need to use Contents API. 


On Monday, December 11, 2017 at 11:54:23 AM UTC-5, [email protected] wrote:
>
> Hi, 
>
> By the server, I meant a server which is running on an AWS lambda. The 
> functionality that I want is to create a notebook using the json which I 
> have received from the server. Think of it as a function which is used to 
> create a new empty notebook. But in my case, I would like to create a 
> notebook with a pre-filled notebook json I have. 
>
> Is that making sense?
>
> Best,
> Anant
>
> On Monday, December 11, 2017 at 11:38:01 AM UTC-5, takowl wrote:
>>
>> It's probably easiest to create a file on the server side, then you just 
>> need to open a window with the right URL to view it.
>>
>> To do this from the Javascript side, you'd need to get the data from the 
>> server and then send it straight back to be saved to a file.
>>
>> On 11 December 2017 at 16:01, <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am working on this tree extension, which puts a button on the toolbar 
>>> (see the attached file). On clicking the button, I fetch a notebook 
>>> json from a server and store it in a javascript variable. I would like to 
>>> create and open the notebook using the json received for the user to start 
>>> working on. 
>>>
>>> I am aware of the working in the contents.js file in the services 
>>> folder, but not sure how I can create a file using what's available. 
>>>
>>> Best,
>>> Anant
>>>
>>> -- 
>>> 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/b3330376-582d-4e90-9933-b5d740fbf8f4%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jupyter/b3330376-582d-4e90-9933-b5d740fbf8f4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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/9cb8055f-1bdf-4861-8d40-b9ef14f706c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to