forked from spacetelescope/jdaviz
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fda0b98
commit 88de0dc
Showing
5 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from PyInstaller.utils.hooks import collect_data_files, copy_metadata, collect_submodules | ||
|
||
hiddenimports = collect_submodules("ipyvuetify") | ||
datas = collect_data_files('ipyvuetify') | ||
datas += copy_metadata('ipyvuetify') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from PyInstaller.utils.hooks import collect_data_files, copy_metadata, collect_submodules | ||
|
||
hiddenimports = collect_submodules("solara") | ||
datas = collect_data_files('solara') | ||
datas += collect_data_files('solara-ui') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from PyInstaller.utils.hooks import collect_data_files, copy_metadata, collect_submodules | ||
|
||
hiddenimports = collect_submodules("solara-server") | ||
datas = collect_data_files('solara-server') | ||
datas += copy_metadata('solara-server') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from PyInstaller.utils.hooks import collect_data_files, copy_metadata, collect_submodules | ||
|
||
hiddenimports = collect_submodules("solara-ui") | ||
datas = collect_data_files('solara-ui') | ||
datas += copy_metadata('solara-ui') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
import sys | ||
|
||
def start_as_kernel(): | ||
# similar to https://github.com/astrofrog/voila-qt-app/blob/master/voila_demo.py | ||
import sys | ||
|
||
from ipykernel import kernelapp as app | ||
app.launch_new_instance() | ||
sys.argv = [app.__file__, sys.argv[3:]] | ||
import jdaviz.cli | ||
|
||
|
||
if __name__ == "__main__": | ||
# When voila starts a kernel under pyinstaller, it will use sys.executable | ||
# (which is this entry point again) | ||
# if called like [sys.argv[0], "-m", "ipykernel_launcher", ...] | ||
if len(sys.argv) >= 3 and sys.argv[1] == "-m" and sys.argv[2] == "ipykernel_launcher": | ||
# it is important that we do not import jdaviz top level | ||
# as that would cause it to import ipywidgets before the kernel is started | ||
start_as_kernel() | ||
else: | ||
import jdaviz.cli | ||
# should change this to _main, but now it doesn't need arguments | ||
jdaviz.cli.main(layout="") | ||
# should change this to _main, but now it doesn't need arguments | ||
jdaviz.cli.main(layout="") |