How to use the enchannel-zmq-backend.createIOPubSubject function in enchannel-zmq-backend

To help you get started, we’ve selected a few enchannel-zmq-backend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nteract / ick / index.js View on Github external
};

      const childMessages = shell.filter(isChildMessage.bind(completeRequest));

      const completeReply = childMessages
                              .filter(msg => msg.header.msg_type === 'complete_reply')
                              .map(msg => msg.content);

      completeReply.subscribe(content => {
        callback(null, [content.matches, line]);
      });

      shell.next(completeRequest);
    });

    const iopub = enchannel.createIOPubSubject(identity, c.config);

    marked.setOptions({
      renderer: new TerminalRenderer(),
    });

    var counter = 1;

    rl.setPrompt(chalk.blue(`ick${langInfo.file_extension}:${counter}> `));
    rl.prompt();

    // Instantiate a string buffer for accumulating incomplete code strings
    var buffer = "";

    rl.on('line', (line) => {
      const isCompleteRequest = createMessage('is_complete_request');
      isCompleteRequest.content = {

enchannel-zmq-backend

Channeling jupyter over zmq

BSD-3-Clause
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis