This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
INotebookSession, IKernelSpecIds, ContentsManager, startNewSession, | |
getKernelSpecs | |
} from 'jupyter-js-services'; | |
/** | |
* Fetch notebook contents by path. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# Copyright © 2016 The Spyder development team | |
# Licensed under the terms of the MIT License | |
# (see spyderlib/__init__.py for details) | |
import socket | |
import errno | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implementation of a kernel future. | |
*/ | |
class KernelFutureHandler implements IKernelFuture { | |
constructor(kernel: IKernel, msgId: string, shellPromise: Promise<IKernelMessage>) { | |
this._msgId = msgId; | |
this.autoDispose = false; | |
this._kernel = kernel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Jupyter Development Team. | |
// Distributed under the terms of the Modified BSD License. | |
/** | |
* A bunch of predefined `Simple Actions` used by Jupyter. | |
* `Simple Actions` have the following keys: | |
* help (optional): a short string the describe the action. | |
* will be used in various context, like as menu name, tool tips on buttons, | |
* and short description in help menu. | |
* help_index (optional): a string used to sort action in help menu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Service { | |
constructor() { | |
this._onReady = new Promise<void>((resolve, reject) => { | |
this._finishInit = resolve; | |
}); | |
} | |
/** | |
* Promise fullfilled when the object is initialized. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Jupyter Development Team. | |
// Distributed under the terms of the Modified BSD License. | |
// Mock implementation of XMLHttpRequest following | |
// https://developer.mozilla.org/en-US/docs/Web/API/xmlhttprequest | |
import expect = require('expect.js'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Type definitions for faux-jax | |
// Project: https://github.com/algolia/faux-jax | |
declare module 'faux-jax' { | |
export function install(): void; | |
export function on(type: string, cb: (xhr: any) => void): void; | |
export function waitFor(nbRequests: number, cb: () => void): void; | |
export function restore(): void; | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.