atlasai-dstoolkit-client 0.0.2__py3-none-any.whl → 0.0.3__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.
atlasai/toolkit/utils.py CHANGED
@@ -10,12 +10,9 @@ def is_notebook() -> bool:
10
10
  try:
11
11
  from IPython import get_ipython
12
12
  shell = get_ipython().__class__.__name__
13
- if shell == 'ZMQInteractiveShell':
13
+ if shell != 'TerminalInteractiveShell':
14
14
  return True
15
- elif shell == 'TerminalInteractiveShell':
16
- return False
17
- else:
18
- return False
15
+ return False
19
16
  except Exception:
20
17
  return False
21
18
 
@@ -30,8 +27,8 @@ def show_page(page):
30
27
 
31
28
  if is_notebook():
32
29
  from IPython.core.display import display
33
- from IPython.display import IFrame
34
- display(IFrame(f.url, width=800, height=600))
30
+ from IPython.display import Javascript
31
+ display(Javascript(f"window.open('{f.url}', '_blank')"))
35
32
  else:
36
33
  webbrowser.open(f.url)
37
34
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlasai-dstoolkit-client
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: UNKNOWN
5
5
  Home-page: UNKNOWN
6
6
  Author: AtlasAI SWE
@@ -6,9 +6,9 @@ atlasai/toolkit/feature.py,sha256=ijoljwdtlI2djeALY14ctL97K5wbzpJkRMtwq-y-PIg,22
6
6
  atlasai/toolkit/init.py,sha256=JkdJ6QGdYWrq65jgz2pn5RYXUeUe2Ez88_-eMf5CNi0,1100
7
7
  atlasai/toolkit/login.py,sha256=n4ydfo9qCsmbZq6er1xeljBD76vdTJGjbhYHMmOyDbQ,3061
8
8
  atlasai/toolkit/requests.py,sha256=X86nIo07hAjUlilZcZ1lV8RB7KOsTKbTGtcY_SpFEXY,1223
9
- atlasai/toolkit/utils.py,sha256=kEoNz3BbSgKbq6X2dDlM4Odcbw2BfoNyls2RKRAL5wQ,1639
10
- atlasai_dstoolkit_client-0.0.2.dist-info/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
11
- atlasai_dstoolkit_client-0.0.2.dist-info/METADATA,sha256=2c-eLkb3z0P2uuQ1E-3J3B4Bi-rQIEYHslmGZ1H3LSU,1301
12
- atlasai_dstoolkit_client-0.0.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
13
- atlasai_dstoolkit_client-0.0.2.dist-info/top_level.txt,sha256=HRTbErU8nmHFDaJJ5R_XYbwpt21dqdjDpSva8xyy_0k,8
14
- atlasai_dstoolkit_client-0.0.2.dist-info/RECORD,,
9
+ atlasai/toolkit/utils.py,sha256=lYh3P2XOshRgHCjFeXJ0FOJWQW64sddgx8c2kL6Wqwc,1566
10
+ atlasai_dstoolkit_client-0.0.3.dist-info/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
11
+ atlasai_dstoolkit_client-0.0.3.dist-info/METADATA,sha256=i9O0IPm3-kyj1HsTbWBsyJrRTG122U-5OKJE_IZzXLg,1301
12
+ atlasai_dstoolkit_client-0.0.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
13
+ atlasai_dstoolkit_client-0.0.3.dist-info/top_level.txt,sha256=HRTbErU8nmHFDaJJ5R_XYbwpt21dqdjDpSva8xyy_0k,8
14
+ atlasai_dstoolkit_client-0.0.3.dist-info/RECORD,,