Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
kernelspec: {
display_name: ks.displayName,
language: ks.language,
name: ks.name
},
nteract: {
version: props.appVersion
}
},
nbformat: 4,
nbformat_minor: 2
};
// NOTE: For the sake of expediency, all the logic to launch a new is
// happening here instead of an epic
contents
// Create UntitledXYZ.ipynb by letting the server do it
.create<"notebook">(serverConfig, props.baseDir, {
type: "notebook"
// NOTE: The contents API appears to ignore the content field for new
// notebook creation.
//
// It would be nice if it could take it. Instead we'll create a new
// notebook for the user and redirect them after we've put in the
// content we want.
//
// Amusingly, this could be used for more general templates to, as
// well as introduction notebooks.
})
.pipe(
// We only expect one response, it's ajax and we want this subscription
// to finish so we don't have to unsubscribe