Ipython Qt Console
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Ipython Qt Console
nice work! I will definitly try this when I find some time. I also made a project idea for GSoC in the direction of notebook visualisation: http://www.freecadweb.org/wiki/index.ph ... ntegration
Re: Ipython Qt Console
thanks. I will try to make a little video showing how to connect sympy mechanics from ipython notebook with FreeCAD. But first I have to learn sympy mechanics
Nice to see these interesting projects. Hopefully there will be many students working on FreeCAD this summer.
Nice to see these interesting projects. Hopefully there will be many students working on FreeCAD this summer.
Re: Ipython Qt Console
Here is a short notebook, which takes a box from FreeCAD, computes the motion due to gravity force with sympy.mechanics and PyDy (box is fixed at the origin) and visualize the rotation in FreeCAD.
Re: Ipython Qt Console
Import Part in ipython console cause an Import error! //ImportError: /home/workspace/freecad-build/Mod/Part/Part.so: undefined symbol: _ZN7gp_Trsf9SetValuesEdddddddddddd // Why is this happening?
Re: Ipython Qt Console
does this problem also happen with the console of freecad?Import Part in ipython console cause an Import error! //ImportError: /home/workspace/freecad-build/Mod/Part/Part.so: undefined symbol: _ZN7gp_Trsf9SetValuesEdddddddddddd // Why is this happening?
Last edited by looo on Tue Mar 15, 2016 8:48 pm, edited 1 time in total.
Re: Ipython Qt Console
This shows why FreeCAD and the Ipython-notebook are such a good match:
demo showing a dynamic simulation using the Ipython notebook with FreeCAD.
demo showing a dynamic simulation using the Ipython notebook with FreeCAD.
Re: Ipython Qt Console
Yes. Also an Import Error happens when I try to import 'Mesh'! Actually this happens when I manually build the FreeCAD using the source, But when I added the PPA and installed FreeCAD via the console on ubuntu works fine!(Both Part and Mesh).looo wrote: does this problem also happen with the console of freecad?
Is it means my manual build contains errors? but I get a successfully build log!
Re: Ipython Qt Console
there is definitly something wring with yiur build. Please add a new thread in the install/compile subforum and add some more Details about your Platform and build process.Maninesan wrote:Yes. Also an Import Error happens when I try to import 'Mesh'! Actually this happens when I manually build the FreeCAD using the source, But when I added the PPA and installed FreeCAD via the console on ubuntu works fine!(Both Part and Mesh).looo wrote: does this problem also happen with the console of freecad?
Is it means my manual build contains errors? but I get a successfully build log!
Re: Ipython Qt Console
just had a look at this again...
to start freecad from jupyter-notebook you have to open a new python2 notebook and run this code. there is no need for a jupyter kernel...
This also works with jupyter-qtconsole and jupyter-console. But there are many different versions of jupyter. so there are maybe some problems with some versions. But I have the feeling with latest jupyter version this gets more stable.
to start freecad from jupyter-notebook you have to open a new python2 notebook and run this code. there is no need for a jupyter kernel...
Code: Select all
import sys, os
os.environ["QT_API"] = "pyside"
%gui qt4
sys.path.append("DIR_which_contains_FreeCADGui")
import FreeCADGui
FreeCADGui.showMainWindow()
Re: Ipython Qt Console
Thanks for sharing the info. I might try it out someday.