CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] notebook with Pyfoam: case not working + deprecated widget warning

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2017, 10:05
Default notebook with Pyfoam: case not working + deprecated widget warning
  #1
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 9
jf_vt is on a distinguished road
Hi
I am using pyFoamIPythonNotebook.py to initialize jupyter notebook to postprocess cases
Doing so ,I run in 2 issues that might be related.

1-When executed for the first time, the cell
Code:
from PyFoam.IPythonHelpers.Case import Case
return the warning:
Code:
/home/jf/anaconda2/lib/python2.7/site-packages/IPython/html.py:14: ShimWarning: The `IPython.html` package has been deprecated since IPython 4.0. You should import from `notebook` instead. `IPython.html.widgets` has moved to `ipywidgets`.
  "`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)
and I dont understand the recommendation this warning carries:
Code:
You should import from `notebook` instead.
by the way ipydgets and mathJax are installed inmyenvironment.

Now ignoring this warning and continuing
I notice that all the cells
case.timelineSelector or case.pickledPlotSelector
fail with the same error
Code:
AttributeError                            Traceback (most recent call last)
<ipython-input-18-cdb75a748b1b> in <module>()
----> 1 case.timelineSelector('postProcessing/patchExpression_CO2')

/home/jf/foam/foam-extend-4.0/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/IPythonHelpers/Case.pyc in timelineSelector(self, directoryName)
    205     def timelineSelector(self,directoryName):
    206         info=self.timelineInfo(directoryName)
--> 207         lst=[widgets.LatexWidget(value="Fields:")]
    208         fieldsSelected=set()
    209         storeButton=widgets.ButtonWidget(description="Store to",disabled=True)

/home/jf/anaconda2/lib/python2.7/site-packages/IPython/utils/shimmodule.pyc in __getattr__(self, key)
     90             return import_item(name)
     91         except ImportError:
---> 92             raise AttributeError(key)

AttributeError: LatexWidget
apparently related to a widget (so related to 1 above..?)

Is is a known behavior
and is there a way to fix it?
Thanks
JF
jf_vt is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[OpenFOAM] Paraview command not found hardy ParaView 7 September 18, 2008 04:59
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 18:40.