Skip to content

Commit 002d426

Browse files
ZsailerGitHub Enterprise
authored andcommitted
Set default ports for kernel connection (jupyter-server#134)
* set default port numbers * Bump to 0.12.3
1 parent 0d49e29 commit 002d426

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.12.2" # pragma: no cover
1+
__version__ = "0.12.3" # pragma: no cover

data_studio_jupyter_extensions/configurables/provisioner.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,19 @@ class NotebookServiceProvisioner(provisioning.KernelProvisionerBase):
3333
"""Kernel Provisioner that talks directly to the Notebook Service."""
3434

3535
ip = Unicode(allow_none=True).tag(config=True)
36-
iopub_port = IntFromEnv(name=constants.IOPUBPORT, allow_none=True)
37-
hb_port = IntFromEnv(name=constants.HBPORT, allow_none=True)
38-
control_port = IntFromEnv(name=constants.CONTROLPORT, allow_none=True)
39-
shell_port = IntFromEnv(name=constants.SHELLPORT, allow_none=True)
40-
stdin_port = IntFromEnv(name=constants.STDINPORT, allow_none=True)
36+
iopub_port = IntFromEnv(
37+
name=constants.IOPUBPORT, default_value=60317, allow_none=True
38+
)
39+
hb_port = IntFromEnv(name=constants.HBPORT, default_value=60320, allow_none=True)
40+
control_port = IntFromEnv(
41+
name=constants.CONTROLPORT, default_value=60319, allow_none=True
42+
)
43+
shell_port = IntFromEnv(
44+
name=constants.SHELLPORT, default_value=60316, allow_none=True
45+
)
46+
stdin_port = IntFromEnv(
47+
name=constants.STDINPORT, default_value=60318, allow_none=True
48+
)
4149
namespace = UnicodeFromEnv(name=constants.DS_NAMESPACE, allow_none=True)
4250

4351
kernelspec_id = UnicodeFromEnv(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ testpaths = [
2323
]
2424

2525
[tool.tbump.version]
26-
current = "0.12.2"
26+
current = "0.12.3"
2727
regex = '''
2828
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
2929
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.2
1+
0.12.3

0 commit comments

Comments
 (0)