Skip to content

Commit

Permalink
fixing linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
beniroquai committed Sep 24, 2024
1 parent 898a11b commit bce3ee1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker/HIK/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker-compose up -d
# ducker pull ghcr.io/openuc2/imswitch-aiortc-react:latest
# docker pull ghcr.io/openuc2/imswitch-docker-arm64-noqt:latest
# docker pull ghcr.io/openuc2/imswitch-noqt-x64:latest
# docker run -it ghcr.io/openuc2/imswitch-aiortc-react:latest
# docker run -it --rm -p 8001:8001 -p 2222:22 -e HEADLESS=1 -e HTTP_PORT=8001 -e CONFIG_FILE=example_virtual_microscope.json -e UPDATE_GIT=1 -e UPDATE_CONFIG=0 ghcr.io/openuc2/imswitch-docker-arm64-noqt:latest
version: '3.8'
Expand Down
2 changes: 1 addition & 1 deletion docker/HIK/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# sudo docker run -it --rm -p 8001:8001 -e HEADLESS=1 -e HTTP_PORT=8001 -e UPDATE_GIT=1 -e UPDATE_CONFIG=0 --privileged -e DATA_PATH=/dataset -v /media/uc2/SD2/:/dataset -e CONFIG_FILE=example_uc2_hik_flowstop.json ghcr.io/openuc2/imswitch-noqt-x64:latest
# sudo docker run -it -e MODE=terminal ghcr.io/openuc2/imswitch-noqt-x64:latest
# sudo docker run -it --rm -p 8001:8001 -p 2222:22 -e UPDATE_INSTALL_GIT=1 -e PIP_PACKAGES="arkitekt UC2-REST" -e CONFIG_PATH=/Users/bene/Downloads -e DATA_PATH=/Users/bene/Downloads -v ~/Documents/imswitch_docker/imswitch_git:/tmp/ImSwitch-changes -v ~/Documents/imswitch_docker/imswitch_pip:/persistent_pip_packages -v /media/uc2/SD2/:/dataset -v ~/Downloads:/config --privileged imswitch_hik

# sudo docker pull docker pull ghcr.io/openuc2/imswitch-noqt-x64:latest

# Witht he following configuration we can do the following:
# 1. Update the ImSwitch repository and install the changes and make them persistent by mounting a volume to /tmp/ImSwitch-changes and /persistent_pip_packages respectively
Expand Down
8 changes: 4 additions & 4 deletions imswitch/imnotebook/view/ImScrMainView.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from imswitch import IS_HEADLESS

from .LaunchNotebookServer import LaunchNotebookServer

if not IS_HEADLESS:
from qtpy import QtCore, QtWidgets
Expand Down Expand Up @@ -39,8 +39,8 @@ def __init__(self, *args, **kwargs):
return

# test and launch notebook server
notebookServer = LaunchNotebookServer()
webaddr = notebookServer.start()
self.notebookServer = LaunchNotebookServer()
webaddr = self.notebookServer.start()

# setup webview
self.view = MainWindow(None, None)
Expand Down Expand Up @@ -76,7 +76,7 @@ def closeEvent(self, event):
#self.sigClosing.emit()
event.accept()
# stop the notebook process
stopnotebook()
self.notebookServer.stopnotebook()



Expand Down
5 changes: 4 additions & 1 deletion imswitch/imnotebook/view/LaunchNotebookServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ def startServer(self):

# start the notebook process
webaddr = startnotebook(execname, directory=directory)
return webaddr
return webaddr

def stopServer(self):
stopnotebook()

0 comments on commit bce3ee1

Please sign in to comment.