Skip to content

Commit bc57890

Browse files
committed
go back to cwd
1 parent 7e0c1ee commit bc57890

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

anaconda-project.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ commands:
99
unix: jupyter lab --no-browser --debug
1010
env_spec: rfjl37
1111

12+
lab:win:
13+
windows: jupyter lab --no-browser --debug
14+
env_spec: win_rfjl37
15+
1216
list:
1317
unix: jupyter serverextension list && jupyter notebook list --json
1418
env_spec: rfjl37
@@ -42,15 +46,16 @@ commands:
4246
env_spec: rfjl37
4347

4448
sdist:win:
45-
unix: python setup.py sdist --dist-dir=_artifacts/sdist
49+
windows: python setup.py sdist --dist-dir=_artifacts/sdist
4650
env_spec: win_rfjl37
4751

4852
install:
4953
unix: pip install . --no-deps --ignore-installed --no-cache-dir -vvv
5054
env_spec: rfjl37
5155

5256
install:win:
53-
unix: python -m pip install _artifacts\sdist\robotframework-jupyterlibrary-0.1.0.tar.gz --no-deps --ignore-installed
57+
windows: >
58+
python -m pip install _artifacts\\sdist\\robotframework-jupyterlibrary-0.1.0.tar.gz --no-deps --ignore-installed -vv
5459
env_spec: win_rfjl37
5560

5661
env_specs:

src/JupyterLibrary/keywords/server.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def start_new_jupyter_server(
5757
os.mkdir(notebook_dir)
5858
config["cwd"] = notebook_dir
5959

60-
args = args or self.build_jupyter_server_arguments(
61-
port, base_url, token, notebook_dir
62-
)
60+
args = args or self.build_jupyter_server_arguments(port, base_url, token)
6361

6462
handle = plib.start_process(command, *args, **config)
6563

@@ -73,7 +71,7 @@ def start_new_jupyter_server(
7371
return handle
7472

7573
@keyword
76-
def build_jupyter_server_arguments(self, port, base_url, token, notebook_dir):
74+
def build_jupyter_server_arguments(self, port, base_url, token):
7775
""" Some default jupyter arguments
7876
"""
7977
return [
@@ -83,7 +81,6 @@ def build_jupyter_server_arguments(self, port, base_url, token, notebook_dir):
8381
f"--port={port}",
8482
f"--NotebookApp.token='{token}'",
8583
f"--NotebookApp.base_url='{base_url}'",
86-
f"--notebook-dir='{notebook_dir}'",
8784
]
8885

8986
@keyword

0 commit comments

Comments
 (0)