Jupyter前端扩展JavaScript API的文档在哪里? [英] Where is a docs for Jupyter front-end extensions JavaScript API?
问题描述
我已经阅读了有关编写Jupyter的 docs 前端扩展,并学习示例,以及现在可以自己构建简单的扩展程序了.
I've read the docs about writing the Jupyter front-end extensions, and learn the examples, and now can build the simple extension by myself.
但是-Jupyter扩展JavaScript API的完整文档在哪里?如何找到用于笔记本属性和方法的JavaScript API?
But - where is a complete docs for Jupyter extensions JavaScript API? How to find the JavaScript API for notebook properties and methods?
推荐答案
这可能不是您希望的答案.但是,这可能对一些不熟悉JavaScript开发的读者有所帮助.
This might not be the answer you hoped for. It might however be helpful for some readers that are new to JavaScript development.
我也在寻找有关Jupyter客户端API的文档,但找不到官方文档.
I also was looking for documentation on the Jupyter client API and could not find official docs.
可以在github存储库上找到JavaScript源代码,例如:
The JavaScript source code can be found on the github repository, for example:
https: //github.com/jupyter/notebook/blob/4.2.2/notebook/static/services/kernels/kernel.js
对我也有帮助的是
A.使用Google Chrome开发工具,在扩展程序中设置一个断点,然后输入
A. Use Google Chrome development tools, set a break point in the extension and type
Jupyter
在控制台中
.然后,您将获得可浏览的树结构,该结构可用于检查Jupyter对象.该树结构似乎不包含方法.
in the console. Then you get a browsable tree structure that can be used to inspect the Jupyter object. That tree structure does not seem to contain methods.
B.记录对象的所有属性,包括方法.如果您想了解笔记本的使用方法,例如
B. Log all the properties of an object, including the methods. If you want to know about the methods oft the notebook use for example
for(var property in Jupyter.notebook){ console.log(property)}
C.在控制台中键入内容时,代码会完成.例如,您可能要输入
C. When typing in the console there is code completion. For example you might want to type
Jupyter.notebook.
并查看有关如何完成命令的建议:
and see the suggestions on how to complete the command:
另请参见
- 如何检查Javascript对象
- 如何显示对象的所有方法?
- https://www.codeproject.com /Articles/24549/How-to-Inspect-a-JavaScript-Object
- Chrome开发者工具控制台-检查JavaScript对象
- How to inspect Javascript Objects
- How to display all methods of an object?
- https://www.codeproject.com/Articles/24549/How-to-Inspect-a-JavaScript-Object
- Chrome Developer Tools console - inspect JavaScript object
开发工具控制台中的可浏览树结构:
Browsable tree structure in dev tools console:
如何列出包括方法的属性:
How to list properties including methods:
...
这篇关于Jupyter前端扩展JavaScript API的文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!