|
[Sponsors] |
[PyFoam] notebook with Pyfoam: case not working + deprecated widget warning |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 27, 2017, 10:05 |
notebook with Pyfoam: case not working + deprecated widget warning
|
#1 |
Member
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10 |
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 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) Code:
You should import from `notebook` instead. 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 Is is a known behavior and is there a way to fix it? Thanks JF |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |