Really confused with Jupyter Notebook, Lab, extensions and ipywidgets

I want to create an interactive JupyterLab laptop application, and I need to create a series of custom widgets. Therefore, I began to study this issue, and the more I look more confused, the more I become. To keep things simple, I'll ask a few simple questions:

  • One of the most common ways to use widgets in Jupyter Notebooks is to use the ipywidgets library. Correctly?
  • Unlike a classic laptop, a JupyterLab laptop cannot display JavaScript directly. As a result, tutorials on creating a custom widget in ipywidgets documents cannot be run on JupyterLab. Correctly?
  • If you want to run JavaScript on a JupyterLab laptop, he or she will have to do this through the extension. In the case of ipywidgets, you will need to install @ jupyter-widgets / jupyterlab-manager. Correctly?
  • If you want to write your own widget using the ipywidgets library, there are two GitHub projects that you could use as a starting point: widget-cookiecutter and widget-ts-cookiecutter. As far as I understand, the first is based on JavaScript, and the second is based on TypeScript. In addition, the first seems to be inactive for some type, and the second is more active. Does the JupyterWidgets team plan to focus on TypeScript? Which should I follow?
  • Cookiecutter projects do not really contain documentation. I am really confused and afraid to understand their code. Of course, I can copy them and start messing around until I figure out how everything works and what are the “hooks” or “entry points” in the code, but I would really appreciate it if someone could give me additional pointers.
  • Is JupyterWidgets the “official” Jupyter project? Given the very small number of project participants, I wonder how safe it is to base my work on ipywidgets. Keep in mind that the DeclarativeWidgets project has long been abandoned.
  • Are there other libraries that implement more widgets than those that are in ipywidgets and also work on JupyterLab?
  • - . , /, - , html/JavaScript. Angular/React Python/Django/Flask. , , / . JupyterLab. , , , , Angular/Python/back-end - JupyterLab, / .

+6
2

, stackoverflow . :

+4

, , JupyterLab , API . , ( 2018 ).

, . , .

, IPywidget , .

+2

All Articles