-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlackBoxModel seems to be missing in the Javascript file, also the documentation of it's usage could be updated #329
Comments
BlackBoxModel
seems to be missing in the Javascript file, also the documentation of it's usage could be updated
So the issue has multiple points, so let me do them separately:
|
I'm happy to contribute a working example to the documentation once I know more :) Regarding your point about telling the Python side the class CubicLattice(pythreejs.Blackbox):
_model_name: Unicode('CubicLatticeModel').tag(sync=True)
_model_module = Unicode('first-widget').tag(sync=True) Now I thought maybe that is the issue and the
My suspicion is that removing the line |
bumping to keep the momentum of this going. |
I'm hitting the same bug with missing BlackboxModel. There aren't any public repositories using it, which suggests no one ever managed to get it to work. |
Hi there,
I am currently working on porting FreeCAD to Jupyter Notebook (repository). I chose
pythreejs
as the tool to render the 3D models. Since I will rely on an additional Javascript library to load the model fromVRML 2.0
format I want to use anpythreejs
extension. The documentation has an example for usingBlackboxModel
to achieve that.I managed to get the example code incorporated into an basic Jupyter Widget with only minor modifications (extension javascript, python code on the server side, python code in notebook) that shouldn't change how the code executes.
The issue I encounter is that in the Jupyter Notebook when running the example Python code the Javascript web console tells me that the
BlackboxModel
object can't be loaded. The relevant error message reads:I tested this with Safari and Firefox. Also I made sure that my widget extension runs fine otherwise. So I checked if I can find where this
BlackBoxModel
is saved and it looks to me like the model is nowhere to be found injupyter-threejs
:Suggestion:
pythreejs
to be a small widget underexamples/extending_pythreejs/
that actually runsBlackBoxModel
is actually included in the build Javascript file.My
pythreejs
version:The text was updated successfully, but these errors were encountered: