spyder-modelx v0.7.0 (24 April 2021)

This release introduces significantly enhanced MxAnalyzer. The Spyder plugin page is updated to reflect the recent enhancements.

To use modelx and spyder-modelx out of the box without any installation, a custom WinPython is provided on the Download page on lifelib.io.

The safest way to update your existing installation is to update modelx and spyder-modelx manually:

$ pip install --upgrade modelx

$ pip install --upgrade --no-deps spyder-modelx

Warning

Anaconda users should not forget --no-deps option when installing or upgrading spyder-modelx using pip. Otherwise, pip may overwrite packages that Spyder depends on.

Note

spyder-modelx v0.7.0 requires modelx v0.13.1 or newer.

Enhancements

MxAnalyzer has now enhanced as follows.

New Formula pane

Each tab in MxAnalyzer now has two split panes in it. The upper pane is for the dependency tree, and the lower pane shows the formula of the selected object in the tree.

../_images/EnhancedMxAnalyzer.png

Dependency tree and Formula pane in MxAnalyzer

Enhanced Value column

The Value column in the dependency tree now shows the type of each object if it’s not a scalar value. By double-clicking on the Value column or right-clicking and selecting Show Value from the context menu, the value of the selected element is shown in a pop-up window. The pop-up window shows values of list, set, tuple, dict, numpy array, in addition to pandas DataFrame, Series, and Index in a tabular format.

../_images/MxAnalyzerShowValueMenu.png

Show Value context menu item on MxAnalyzer

../_images/MxAnalyzerPopUpSeries.png

Pop-up window showing the values of a Series

Setting object from MxExplorer

Prior to this release, the object to analyze can only be set as an expression entered by the user which is to be evaluated in MxConsole. This release enables the user to set the object to analyze from MxExplorer. By clicking the newly added Analyze Selected item in the MxExplorer context menu, the selected object is set in MxAnalyzer (currently, only Cells can be selected). The prior method of entering an expression continues to be available. The radio buttons in the upper left corner are for controlling which method to use.

../_images/MxExplorerAnalyzeMenu.png

Analyze Selected context menu item on MxExplorer

../_images/EnhancedMxAnalyzerObjectBox.png

Indicator in MxAnalyzer showing the selected Cells

Bug Fix

  • Fixed the bug that MxAnalyzer fails to unfold the top row and Spyder subsequently crashes (GH11).