Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display an expression with a progress panel
ResourceFunction["DisplayWithProgress"][expr] displays a progress indicator until expr is evaluated. | |
ResourceFunction["DisplayWithProgress"][expr,progress] displays progress until expr is evaluated. |
Display progress until "Ready" is shown:
In[1]:= |
|
Out[1]= |
|
Displays "Loading…" until "Ready" is shown:
In[2]:= |
|
Out[2]= |
|
Display progress for an expression as an afterthought:
In[3]:= |
|
Out[3]= |
|
Display a progress pane until the contour plot loads:
In[4]:= |
|
Out[4]= |
|
Display a progress pane until a Dynamic loads:
In[5]:= |
|
In[6]:= |
|
Out[6]= |
|
Change the value of x and see the above getting updated:
In[7]:= |
|
Display a ProgressIndicator until a DynamicModule finishes the initialization:
In[8]:= |
|
Out[8]= |
|
Display a progress pane until an expensive graphic finishes rendering:
In[9]:= |
|
In[10]:= |
|
Out[10]= |
|
Display a progress pane while updating a time-consuming Dynamic with a slider:
In[11]:= |
|
Out[11]= |
|
Use along with ControlActive:
In[12]:= |
|
Out[12]= |
|
Use with a time-consuming computation within a button:
In[13]:= |
|
Out[7]= |
|
Use with a checkbox:
In[14]:= |
|
Out[10]= |
|
Display progress until the full interface loads:
In[15]:= |
|
Out[15]= |
|
Display ProgressIndicators in TabView:
In[16]:= |
|
Out[17]= |
|
Show the extent of the progress:
In[18]:= |
|
Out[15]= |
|
Monitor creates a new cell for displaying the progress pane:
In[19]:= |
|
Out[19]= |
|
DisplayWithProgress can work on the specified part of the expression:
In[20]:= |
|
Out[20]= |
|
DisplayWithProgress uses the resource function AsynchronousDynamicModule internally for rendering a DynamicModule:
In[21]:= |
|
Out[21]= |
|
DisplayWithProgress works by creating a DynamicModule, thus might not be able to manipulate the output in typical ways:
In[22]:= |
|
Out[22]= |
|
In[23]:= |
|
Out[23]= |
|
The front end locks up while rendering (after evaluating the expression) an expensive graphics, and thus a progress pane containing an animation may hang for some time:
In[24]:= |
|
In[25]:= |
|
Out[25]= |
|
It is better to use a static progress pane in such cases:
In[26]:= |
|
Out[26]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License