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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prismnote
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Modern, open-source Jupyter-compatible data science notebook with Rust performance
5
5
  Author-email: Georgi Mammen Mullassery <mullassery@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "prismnote"
7
- version = "0.4.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.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
- # Open browser automatically
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
- webbrowser.open("http://localhost:8000")
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)])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prismnote
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Modern, open-source Jupyter-compatible data science notebook with Rust performance
5
5
  Author-email: Georgi Mammen Mullassery <mullassery@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes