Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return
if len(cmdl.split()) == 0:
if interactive.jobfolder_path is None:
print("Current position in job folder:", interactive.jobfolder.name)
else:
print("Current position in job folder:", interactive.jobfolder.name)
print("Filename of job-folder: ", interactive.jobfolder_path)
return
args = cmdl.split()
if len(args) > 1:
print("Invalid argument to goto {0}.".format(cmdl))
return
# if no argument, then print current job data.
if len(args) == 0:
explore(self, "")
return
# cases to send to iterate.
if args[0] == "next":
return iterate(self, "")
elif args[0] == "previous":
return iterate(self, "previous")
elif args[0] == "reset":
return iterate(self, "reset")
# case for which precise location is given.
try:
result = interactive.jobfolder[args[0]]
except KeyError as e:
print(e)
return
"""
from .. import is_interactive
from ..error import interactive as ierror
if not is_interactive:
raise ierror('Not in interactive session.')
from IPython.core.interactiveshell import InteractiveShell
from ..ipython.explore import explore
from ..ipython.savefolders import savefolders
import pylada
pylada.interactive.jobfolder = folder.root
pylada.interactive.jobfolder_path = path
shell = InteractiveShell.instance()
savefolders(shell, path)
explore(shell, '{0} --file'.format(path))