jupyter / jupyter/notebook

How to correctly use kernel.execute method of Jupyter notebook in Javascript (timing issues)?

Open
#4,587 0 comments 11 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

* I would expect the shell callback to be called after the iopub callback but it seems to be the other way around. Is this the expected behavior? Also see following SO question for details:

https://stackoverflow.com/questions/55828900/how-to-correctly-use-kernel-execute-method-of-jupyter-notebook-in-javascript-ti

* I would like to pass some SQL query from JavaScript to Python and use Python to execute the query. That works in principle. However, the data that I can pass back from Python to JavaScript seems to be limited to about 60 lines. For large dataFrames only some sort of preview is returned.

Also see
https://stackoverflow.com/questions/32974051/ipython-notebook-using-javascript-to-run-python-code

* I could not find out how to retrieve the html output that corresponds to some executed python code. Please allow to do so and improve documentation about the execute method and its callback object.

Also see
https://stackoverflow.com/questions/55849165/how-to-retrieve-html-output-from-jupyter-notebook-kernel-execute-method

Contributor guide

Open the contributing guide

Research direction

Start with the Jupyter kernel.execute API and its shell and iopub callbacks. Investigate the callback object and how large data-frame results and HTML output are returned; done would mean documented callback ordering, reliable result retrieval, and clear guidance for these use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter-notebook
Domain
api, documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.