diff --git a/src/pyensae/remote/magic_remote.py b/src/pyensae/remote/magic_remote.py index 0ecf7847..8de19e6e 100644 --- a/src/pyensae/remote/magic_remote.py +++ b/src/pyensae/remote/magic_remote.py @@ -48,6 +48,13 @@ def PIG(self, line, cell = None): with open(filename, "w", encoding="utf8") as f : f.write(cell.replace("\r","")) + @line_magic + def pigsubmit(self, line): + """ + @see me jobsubmit + """ + return self.jobsubmit(line) + @line_magic def jobsubmit(self, line): """ @@ -114,6 +121,13 @@ def jobsyntax(self, line): else: return HTML("
\n%s\n
" % out) + @line_magic + def open_remote(self, line): + """ + @see me remote_open + """ + return self.remote_open(line) + @line_magic def remote_open (self, line): """ @@ -149,6 +163,13 @@ def remote_open (self, line): self.shell.user_ns["remote_ssh"] = ssh return ssh + @line_magic + def close_remote(self, line): + """ + @see me remote_close + """ + return self.remote_close(line) + @line_magic def remote_close (self, line): """ @@ -157,6 +178,13 @@ def remote_close (self, line): """ self.get_connection().close() + @line_magic + def cmd_remote(self, line): + """ + @see me remote_cmd + """ + return self.remote_cmd(line) + @line_magic def remote_cmd(self, line): """ @@ -173,6 +201,13 @@ def remote_cmd(self, line): return HTML("
\n%s\n
" % err) else: return HTML("
\n%s\n
" % out) + + @line_magic + def up_remote(self, line): + """ + @see me remote_up + """ + return self.remote_up(line) @line_magic def remote_up(self, line): @@ -198,6 +233,13 @@ def remote_up(self, line): raise FileNotFoundError(localfile) ssh.upload(localfile, remotepath) + @line_magic + def down_remote(self, line): + """ + @see me remote_down + """ + return self.remote_down(line) + @line_magic def remote_down(self, line): """