STEM 隨筆︰古典力學︰模擬術【可視化】 B

天下事分分合合,往往各以其理!

搭配起來常常多處不適,於是煩惱生耶?

如今那

/pydy-viz

pydy-viz

Notice

pydy-viz has been merged into the main pydy repository. This independent project is now deprecated, all development and subsequent releases will be from http://github.com/pydy/pydy.

Visualization of multibody systems generated with PyDy.

 

已經合併!

恰巧正逢這

/ipywidgets

Interactive widgets for the Jupyter Notebook https://ipywidgets.readthedocs.io

ipywidgets: Interactive HTML Widgets

Version Build Status Documentation Status Join the chat at https://gitter.im/ipython/ipywidgets

ipywidgets are interactive HTML widgets for Jupyter notebooks and the IPython kernel.

Notebooks come alive when interactive widgets are used. Users gain control of their data and can visualize changes in the data.

Learning becomes an immersive, plus fun, experience. Researchers can easily see how changing inputs to a model impact the results. We hope you will add ipywidgets to your notebooks, and we’re here to help you get started.

Core Interactive Widgets

A demonstration notebook provides an overview of the core interactive widgets, including:

  • sliders
  • progress bars
  • text boxes
  • toggle buttons and checkboxes
  • display areas
  • and more

Jupyter Interactive Widgets as a Framework

Besides the widgets already provided with the library, the framework can be extended with custom widget libraries.

A template project is available in the form of a cookie cutter here.

This project is meant to help custom widget authors get started with the packaging and the distribution of Jupyter interactive widgets.

It produces a project for a Jupyter interactive widget library following the current best practices for using interactive widgets. An implementation for a placeholder “Hello World” widget is provided.

Popular widget libraries such as bqplot, pythreejs and ipyleaflet

follow exactly the same template and directory structure. They can serve as more advanced examples of usage of the Jupyter widget infrastructure.

For detailed information, please refer to the ipywidgets documentation.

 

早定分殊?

此所以整合過程憂報不斷乎?!

‧ Not working across all browsers and OSs #113

‧ ipywidgets 5.0 has been released and is backwards incompatible #348

……

 

莫說沒有熱忱者開道來告知︰

You can modify the cell like this until a fix has been merged:

scene.display_ipython()
import IPython.display
IPython.display.display(IPython.display.HTML(scene._html_widget.value))

 

方不方便,宜且不宜,端賴用者矣!?

 

※ 註︰版本還請與 『原範例網頁』比較︰

 

※ 註︰ 最好放在最後一格。

 

※ 註︰須先安裝 IPython 之

 Use the ‘%version_information’ IPython magic extension in a notebook to display information about which versions of dependency package that was used to run the notebook.

Installation

 Install the version_information package using pip:
pip install version_information

……

/version_information

IPython magic command for showing version information for dependency modules in a notebook.

哩。