Add user-folder to jupyter-lab / vscode links. Take latest clearml RC

This commit is contained in:
allegroai 2021-12-29 23:07:08 +02:00
parent a5792ed82a
commit 5ab6995fb4
2 changed files with 6 additions and 2 deletions

View File

@ -149,7 +149,7 @@ def create_base_task(state, project_name=None, task_name=None):
task_script['working_dir'] = '.' task_script['working_dir'] = '.'
task_script['entry_point'] = 'interactive_session.py' task_script['entry_point'] = 'interactive_session.py'
task_script['requirements'] = {'pip': '\n'.join( task_script['requirements'] = {'pip': '\n'.join(
["clearml"] + (["jupyter", "jupyterlab", "jupyterlab_git"] if state.get('jupyter_lab') else []) + ["clearml>=1.1.5rc6"] + (["jupyter", "jupyterlab", "jupyterlab_git"] if state.get('jupyter_lab') else []) +
(['pylint'] if state.get('vscode_server') else []))} (['pylint'] if state.get('vscode_server') else []))}
section, _, _ = _get_config_section_name() section, _, _ = _get_config_section_name()
@ -805,9 +805,13 @@ def monitor_ssh_tunnel(state, task):
msg += \ msg += \
'\nJupyter Lab URL: http://localhost:{local_jupyter_port}/?token={jupyter_token}'.format( '\nJupyter Lab URL: http://localhost:{local_jupyter_port}/?token={jupyter_token}'.format(
local_jupyter_port=local_jupyter_port, jupyter_token=jupyter_token.rstrip()) local_jupyter_port=local_jupyter_port, jupyter_token=jupyter_token.rstrip())
if state.get('user_folder'):
msg += "&file-browser-path={}".format(state.get('user_folder'))
if vscode_port: if vscode_port:
msg += '\nVSCode server available at http://localhost:{local_vscode_port}/'.format( msg += '\nVSCode server available at http://localhost:{local_vscode_port}/'.format(
local_vscode_port=local_vscode_port) local_vscode_port=local_vscode_port)
if state.get('user_folder'):
msg += "?folder={}".format(state.get('user_folder'))
print(msg) print(msg)
print('\nConnection is up and running\n' print('\nConnection is up and running\n'

View File

@ -1 +1 @@
__version__ = '0.3.5rc3' __version__ = '0.3.5rc4'