Skip to content

Commit

Permalink
now?
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Oct 14, 2023
1 parent 7ae9248 commit 6a9dcda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests_notebooks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def aiidalab_exec(docker_compose):
def execute(command, user=None, **kwargs):
workdir = "/home/jovyan/apps/aiidalab-widgets-base"
if user:
command = f"exec --workdir {workdir} -T --user={user} aiidalab '{command}'"
command = f"exec --workdir {workdir} -T --user={user} aiidalab {command}"
else:
command = f"exec --workdir {workdir} -T aiidalab '{command}'"
command = f"exec --workdir {workdir} -T aiidalab {command}"

return docker_compose.execute(command, **kwargs)

Expand All @@ -61,7 +61,7 @@ def notebook_service(docker_ip, docker_services, aiidalab_exec):
aiidalab_exec("chmod -R a+rw /home/jovyan/apps/aiidalab-widgets-base", user="root")

# Install AWB with extra dependencies for SmilesWidget
aiidalab_exec("free -m; pip install --no-cache-dir .[smiles]")
aiidalab_exec("bash -c 'free -m; pip install --no-cache-dir .[smiles]'")

# `port_for` takes a container port and returns the corresponding host port
port = docker_services.port_for("aiidalab", 8888)
Expand Down

0 comments on commit 6a9dcda

Please sign in to comment.