Open phohenberger opened 3 months ago
Here is a one-line change to make the complete CI/CD pipeline happy:
diff --git a/testsuite/scripts/importlib_wrapper.py b/testsuite/scripts/importlib_wrapper.py
index f3dd8e5b44..5bc879338c 100644
--- a/testsuite/scripts/importlib_wrapper.py
+++ b/testsuite/scripts/importlib_wrapper.py
@@ -396,3 +396,3 @@ class GetEspressomdVisualizerImports(ast.NodeVisitor):
def __init__(self):
- self.visualizers = {"visualization"}
+ self.visualizers = {"visualization", "zn"}
self.namespace_visualizers = {
ext_forces
@jngrad Regarding the cookie issue, are you sure that you have enable all cookies? On firefox for example I worked fine when using blocking cross-site tracking cookies and isolate other cross-site cookies
or is this lama specific?
I did not try all options, but the two specifically mentioned were not resolving the issue. I gave up and allowed everything.
After updating to ZnDraw 0.4.6, I can no longer start a ZnDraw server on Chrome and Firefox:
Starting ZnDraw server, this may take a few seconds
WARNING:zndraw.zndraw:Connection failed. Retrying...
WARNING:zndraw.zndraw:Connection failed. Retrying...
WARNING:zndraw.zndraw:Connection failed. Retrying...
WARNING:zndraw.zndraw:Connection failed. Retrying...
ConnectionError Traceback (most recent call last)
/work/jgrad/espresso-fork-PR/zndraw/lib/python3.10/site-packages/zndraw/zndraw.py in __post_init__(self)
118 self.socket.sleep(self.timeout["connection"])
119 if idx == self.timeout["connect_retries"]:
--> 120 raise socketio.exceptions.ConnectionError(
121 f"Unable to connect to ZnDraw server at '{self.url}'. Is the server running?"
122 ) from err
ConnectionError: Unable to connect to ZnDraw server at 'ws://127.0.0.1:1234'. Is the server running?
What. I tested in on some of the most common browsers. Chrome, Firefox, Edge, Brave all worked with no issues at all. The internal ZnDraw tests for starting a server also passed.
Is the problem you are facing simply using the Visualizer as provided by the PR, or your work on making it run on binder?
I used your PR on the lama
workstation, and accepted cookies.
We created a new user account to get a fresh Firefox/Chrome/JupyterLab installation, and your PR now works.
len(zndraw)
call in update loop to avoid socket-callAllow non-Jupyter usepostponed due to unsolved runaway server problemsAsynchronous Server startupAdd color gradients for particle colors depending on the distance to referencelama
, ZnDraw creates a white rectangle in Jupyter instead of displaying the GUI (works fine in Chrome, on Firefox one can still click on the server URL to open the visualizer in a new tab and see everything)Find out ifnot possibledatamodel-code-generator
can be made a soft dependency (it has a lot of dependencies)ext_forces