Skip to content

Commit 02a9f9c

Browse files
committed
release
1 parent 8b100d0 commit 02a9f9c

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/jupyter_forge.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010

1111

1212
class JupyterForge:
13-
def __init__(self, urn, token: Token, port=62345, debug_mode=False):
13+
def __init__(self, urn, token: Token,region:str="US", port=62345, debug_mode=False):
1414
self.debug_mode = debug_mode
1515
self.token = token
1616
self.urn = urn
17+
self.region = region
1718
if urn is None:
1819
raise Exception("URN is required")
1920
if token is None:
@@ -113,10 +114,10 @@ def show(self, object_ids: list[int] = None, width: int = 600, height: int = 350
113114
access_token = self.token.access_token
114115
current_dir = os.path.dirname(os.path.realpath(__file__))
115116
file_path = os.path.join(current_dir, "template", "index.html")
116-
print("file_path", file_path)
117117
with open(file_path, "r") as file:
118118
html_template = file.read()
119119
html_content = html_template.replace("{{TOKEN}}", access_token).replace("{{URN}}", self.urn)
120+
html_content = html_content.replace("{{REGION}}", self.region)
120121
if object_ids:
121122
objects_ids_str = ",".join(map(str, object_ids))
122123
html_content = html_content.replace("{{OBJECT_IDS}}", objects_ids_str)

src/test-lib.ipynb renamed to docs/test-lib.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 15,
5+
"execution_count": 1,
66
"id": "initial_id",
77
"metadata": {
88
"collapsed": true,
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"cell_type": "code",
21-
"execution_count": 22,
21+
"execution_count": 2,
2222
"id": "ef968bc9afae7ded",
2323
"metadata": {
2424
"ExecuteTime": {
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"cell_type": "code",
39-
"execution_count": 25,
39+
"execution_count": 3,
4040
"id": "b3f8b04d",
4141
"metadata": {
4242
"ExecuteTime": {
@@ -60,7 +60,7 @@
6060
" "
6161
],
6262
"text/plain": [
63-
"<IPython.lib.display.IFrame at 0x11fcc9dc0>"
63+
"<IPython.lib.display.IFrame at 0x208c591b0e0>"
6464
]
6565
},
6666
"metadata": {},
@@ -111,7 +111,7 @@
111111
],
112112
"metadata": {
113113
"kernelspec": {
114-
"display_name": "base",
114+
"display_name": "Python 3",
115115
"language": "python",
116116
"name": "python3"
117117
},

0 commit comments

Comments
 (0)