pybiolib 1.2.783__py3-none-any.whl → 1.2.802__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- biolib/_internal/llm_instructions/.github/{code-style.md → instructions/code-style.md} +4 -0
- biolib/_internal/llm_instructions/.github/instructions/copilot-instructions.md +9 -0
- biolib/experiments/experiment.py +24 -0
- {pybiolib-1.2.783.dist-info → pybiolib-1.2.802.dist-info}/METADATA +1 -1
- {pybiolib-1.2.783.dist-info → pybiolib-1.2.802.dist-info}/RECORD +8 -8
- biolib/_internal/llm_instructions/.github/copilot-instructions.md +0 -5
- {pybiolib-1.2.783.dist-info → pybiolib-1.2.802.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.783.dist-info → pybiolib-1.2.802.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.783.dist-info → pybiolib-1.2.802.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
---
|
2
|
+
applyTo: '**'
|
3
|
+
---
|
4
|
+
|
5
|
+
Use yarn instead of npm whenever relevant.
|
6
|
+
|
7
|
+
When running BioLib Apps, use [this file](../prompts/biolib_run_apps.prompt.md) as context to understand how that works.
|
8
|
+
|
9
|
+
When working with BioLib App inputs, use [this file](../prompts/biolib_app_inputs.prompt.md) as context to understand how the different files should be connected and formatted.
|
biolib/experiments/experiment.py
CHANGED
@@ -4,11 +4,14 @@ from collections import OrderedDict
|
|
4
4
|
from biolib import api
|
5
5
|
from biolib._internal.types.experiment import DeprecatedExperimentDict, ExperimentDict
|
6
6
|
from biolib._internal.types.resource import ResourceDetailedDict
|
7
|
+
from biolib._internal.utils import open_browser_window_from_notebook
|
8
|
+
from biolib.biolib_api_client import BiolibApiClient
|
7
9
|
from biolib.biolib_errors import BioLibError
|
8
10
|
from biolib.jobs.job import Job
|
9
11
|
from biolib.jobs.types import JobsPaginatedResponse
|
10
12
|
from biolib.tables import BioLibTable
|
11
13
|
from biolib.typing_utils import Dict, List, Optional, Union
|
14
|
+
from biolib.utils import IS_RUNNING_IN_NOTEBOOK
|
12
15
|
|
13
16
|
|
14
17
|
class Experiment:
|
@@ -42,6 +45,10 @@ class Experiment:
|
|
42
45
|
def uuid(self) -> str:
|
43
46
|
return self._resource_dict['uuid']
|
44
47
|
|
48
|
+
@property
|
49
|
+
def id(self) -> str:
|
50
|
+
return self.uuid
|
51
|
+
|
45
52
|
@property
|
46
53
|
def name(self) -> str:
|
47
54
|
return self._resource_dict['name']
|
@@ -235,3 +242,20 @@ class Experiment:
|
|
235
242
|
|
236
243
|
def _refetch(self) -> None:
|
237
244
|
self._resource_dict = self._get_resource_dict_by_uuid(uuid=self._resource_dict['uuid'])
|
245
|
+
|
246
|
+
def open_browser(self) -> None:
|
247
|
+
"""Open a browser window to view this experiment.
|
248
|
+
|
249
|
+
If running in a notebook, this will attempt to open a new browser window.
|
250
|
+
Otherwise, it will print a URL that you can copy and paste.
|
251
|
+
"""
|
252
|
+
api_client = BiolibApiClient.get()
|
253
|
+
url_to_open = f'{api_client.base_url}/experiments/{self.id}/'
|
254
|
+
|
255
|
+
if IS_RUNNING_IN_NOTEBOOK:
|
256
|
+
print(f'Opening experiment page at: {url_to_open}')
|
257
|
+
print('If your browser does not open automatically, click on the link above.')
|
258
|
+
open_browser_window_from_notebook(url_to_open)
|
259
|
+
else:
|
260
|
+
print('Please copy and paste the following link into your browser:')
|
261
|
+
print(url_to_open)
|
@@ -14,8 +14,8 @@ biolib/_internal/lfs/__init__.py,sha256=gSWo_xg61UniYgD7yNYxeT4I9uaXBCBSi3_nmZjn
|
|
14
14
|
biolib/_internal/lfs/cache.py,sha256=pQS2np21rdJ6I3DpoOutnzPHpLOZgUIS8TMltUJk_k4,2226
|
15
15
|
biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
|
16
16
|
biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
|
17
|
-
biolib/_internal/llm_instructions/.github/code-style.md,sha256=
|
18
|
-
biolib/_internal/llm_instructions/.github/copilot-instructions.md,sha256=
|
17
|
+
biolib/_internal/llm_instructions/.github/instructions/code-style.md,sha256=6epb7p2d0am-nS9WnnncYIiLzqnoXmJySbS7Y9sTUv8,475
|
18
|
+
biolib/_internal/llm_instructions/.github/instructions/copilot-instructions.md,sha256=4zoTs_xCV7UxmFfi2VDETMVUlDdMdGxp4FpNn4IHAxI,366
|
19
19
|
biolib/_internal/llm_instructions/.github/prompts/biolib_app_inputs.prompt.md,sha256=DcBUNaViuNfXoomj-IVUcIcBtJlXuIYOroUfDM_R6wU,3212
|
20
20
|
biolib/_internal/llm_instructions/.github/prompts/biolib_run_apps.prompt.md,sha256=HYv-MgpQKIU7Hv90SvZ3tqXY6KWxYVnqamXDRyInOHM,7926
|
21
21
|
biolib/_internal/llm_instructions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -111,7 +111,7 @@ biolib/compute_node/webserver/webserver_types.py,sha256=2t8EaFKESnves3BA_NBdnS2y
|
|
111
111
|
biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
|
112
112
|
biolib/compute_node/webserver/worker_thread.py,sha256=7uD9yQPhePYvP2HCJ27EeZ_h6psfIWFgqm1RHZxzobs,12483
|
113
113
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
114
|
-
biolib/experiments/experiment.py,sha256=
|
114
|
+
biolib/experiments/experiment.py,sha256=gY1-d7FgVrcQO3YzOJ0mHS6j7z7rl5XzXEuk7dFi1gU,10460
|
115
115
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
116
116
|
biolib/jobs/job.py,sha256=X33-s9u8x3uZI0x_fSDgEFAW0ke-8Qi96M-VB-W29MA,26703
|
117
117
|
biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
|
@@ -131,8 +131,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
131
131
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
132
132
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
133
133
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
134
|
-
pybiolib-1.2.
|
135
|
-
pybiolib-1.2.
|
136
|
-
pybiolib-1.2.
|
137
|
-
pybiolib-1.2.
|
138
|
-
pybiolib-1.2.
|
134
|
+
pybiolib-1.2.802.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
135
|
+
pybiolib-1.2.802.dist-info/METADATA,sha256=Sad2f-bZHF7jI1ZQCubwERfK_5mgPsn486KleIAzG8Q,1570
|
136
|
+
pybiolib-1.2.802.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
137
|
+
pybiolib-1.2.802.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
138
|
+
pybiolib-1.2.802.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
Use yarn instead of npm whenever relevant.
|
2
|
-
|
3
|
-
When running BioLib Apps, use [this file](prompts/biolib_run_apps.prompt.md) as context to understand how that works.
|
4
|
-
|
5
|
-
When working with BioLib App inputs, use [this file](prompts/biolib_app_inputs.prompt.md) as context to understand how the different files should be connected and formatted.
|
File without changes
|
File without changes
|
File without changes
|