Skip to content

Commit

Permalink
Disable uvloop dependency on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Feb 6, 2024
1 parent d673126 commit a3e06ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies = [
"beautifulsoup4>=4.11.2",
"lxml>=4.9.2",
"lightkurve>=2.3.0",
"uvloop>=0.17.0",
"uvloop>=0.17.0; platform_system != 'Windows'",
"filelock>=3.9.0",
"torch>=2.0.1",
"torchvision>=0.15.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import platform
from pathlib import Path

import uvloop
from bokeh import plotting
from bokeh.application import Application
from bokeh.application.handlers import DirectoryHandler
Expand All @@ -13,6 +12,7 @@

def run_viewer(light_curve_path: Path, port: int = 5007):
if platform.system() != 'Windows':
import uvloop
uvloop.install()
print(f'Opening viewer on http://localhost:{port}/')
handler = DirectoryHandler(filename=str(Path(__file__).parent), argv=[light_curve_path])
Expand Down

0 comments on commit a3e06ce

Please sign in to comment.