prismnote 0.4.4__tar.gz → 0.4.5__tar.gz
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.
- {prismnote-0.4.4/python/prismnote.egg-info → prismnote-0.4.5}/PKG-INFO +1 -1
- {prismnote-0.4.4 → prismnote-0.4.5}/pyproject.toml +1 -1
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote/_cli.py +17 -3
- {prismnote-0.4.4 → prismnote-0.4.5/python/prismnote.egg-info}/PKG-INFO +1 -1
- {prismnote-0.4.4 → prismnote-0.4.5}/LICENSE +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/README.md +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote/__init__.py +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote/__main__.py +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote.egg-info/SOURCES.txt +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote.egg-info/dependency_links.txt +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote.egg-info/entry_points.txt +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote.egg-info/requires.txt +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/python/prismnote.egg-info/top_level.txt +0 -0
- {prismnote-0.4.4 → prismnote-0.4.5}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "prismnote"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.5"
|
|
8
8
|
description = "Modern, open-source Jupyter-compatible data science notebook with Rust performance"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -15,7 +15,7 @@ import platform
|
|
|
15
15
|
import urllib.request
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
|
|
18
|
-
__version__ = "0.4.
|
|
18
|
+
__version__ = "0.4.5"
|
|
19
19
|
|
|
20
20
|
GITHUB_REPO = "Mullassery/prismnote"
|
|
21
21
|
CACHE_DIR = Path.home() / ".prismnote" / "bin"
|
|
@@ -185,9 +185,23 @@ def main():
|
|
|
185
185
|
try:
|
|
186
186
|
binary_path = download_binary()
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
print("\n✨ Starting PrismNote...")
|
|
189
|
+
print("🌐 Opening http://localhost:8000 in your browser...\n")
|
|
190
|
+
|
|
191
|
+
# Fork a process to open browser after server starts
|
|
189
192
|
import webbrowser
|
|
190
|
-
|
|
193
|
+
import threading
|
|
194
|
+
|
|
195
|
+
def open_browser_later():
|
|
196
|
+
import time
|
|
197
|
+
time.sleep(2) # Wait for server to be ready
|
|
198
|
+
try:
|
|
199
|
+
webbrowser.open("http://localhost:8000")
|
|
200
|
+
except Exception:
|
|
201
|
+
pass # Silent fail if browser can't open
|
|
202
|
+
|
|
203
|
+
thread = threading.Thread(target=open_browser_later, daemon=True)
|
|
204
|
+
thread.start()
|
|
191
205
|
|
|
192
206
|
# Exec the binary (this replaces the Python process)
|
|
193
207
|
os.execv(str(binary_path), [str(binary_path)])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|