-
Notifications
You must be signed in to change notification settings - Fork 12
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
View web server on other device broken #146
Comments
I just tried it on my machines: Linux: pip install ocp_vscode
cd build123d
pip install . # to avoid the HashCode problem
python -m ocp-vscode --host="0.0.0.0" Same machine In [1]: from build123d import *
In [2]: from ocp_vscode import *
In [3]: b = Box(1,1,1)
In [4]: b = chamfer(b.edges(), 0.1)
In [5]: show(b)
UserWarning: The viewer doesn't seem to run
Port 3939 is open, using it
Jupyter console not installed
+ Other machine In [1]: from build123d import *
In [2]: from ocp_vscode import *
In [3]: set_port(3939, host='192.168.178.41')
In [4]: b = Box(1,2,3)
In [5]: b = chamfer(b.edges(), 0.2)
In [6]: show(b)
+ In both cases the box will be shown in the viewer as expected |
And yes, the |
I think your case might be slightly different. You need to open the viewer in the browser on |
I did:
Am I missing someting? |
The error that you see can only happen, if the viewer does not register back to the server. |
Ha, I could (somehow) reproduce your error: Was this maybe your issue? |
@MatthiasJ1 I now show No browser registered. Please open the viewer in a browser or refresh the viewer page in the terminal of the viewer server when this error occurs. |
The web server works if running on the same machine. If run with
--host 0.0.0.0
, it can be accessed from another device. If I open<computer ip>:3939/viewer
on my iPad, I will get the OCP viewer UI with the default OCP eye logo which I can view in 3D, but if I runshow()
on my computer, I get the following output on the OCP viewer server:The text was updated successfully, but these errors were encountered: