r/OpenPythonSCAD • • Dec 16 '24

PythonSCAD as iPython

Today I managed to get PythonSCAD working as interactive python interpreter,

with all PythonSCAD functionality included, see yourself

https://www.youtube.com/watch?v=TymFtcB8K8E

Next task is to head towards Jupyter Notbook, but I am lacking some knowledge.

Who is interested in supporting me ?

4 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/gadget3D Dec 17 '24

not sure, from viewscad instructions i realize that jupyterlab is more complicated, so lets begin with the easier task

3

u/grow2live Dec 23 '24

Regarding viewscad, its functionality that is relevant here is: stl viewer. This can be accomplished in Python with a 3d js library. Viewscad uses pythreejs for this. It’s not overwhelmingly complicated, the hardest challenge is in setting a scoped vision for the viewer. There isn’t any Jupyter-specific complication, Jupyter just renders the js generated by pythreejs

3

u/gadget3D Dec 23 '24

I am an absolute jupyter notebook beginner, i just know how to use because our company uses it in lab for electrical measurements. I would be excited if you could help me/aid me , on how to get pythonscad into juptyer notebook. Tried to compile libxeus, but failed on a version conflict ...