Skip to content

Commit

Permalink
Use long host name (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 authored May 11, 2021
1 parent bf71707 commit caf320d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jupyter_forward/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@ def _launch_jupyter(self):
self.log_file = f'{self.log_dir}/log.{timestamp}'
self.run_command(command=f'touch {self.log_file}')

command = 'jupyter lab --no-browser'
if self.launch_command:
command = f'{command} --ip=\$(hostname)'
else:
command = f'{command} --ip=`hostname`'
command = 'jupyter lab --no-browser --ip=\$(hostname -f)'
if self.notebook_dir:
command = f'{command} --notebook-dir={self.notebook_dir}'
command = f'{command} >& {self.log_file}'
Expand Down

0 comments on commit caf320d

Please sign in to comment.