-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix connection between the IPython Console and the Working Directory toolbar #3622
Conversation
@@ -837,6 +840,13 @@ def run_script_in_current_client(self, filename, wdir, args, debug, | |||
"<br><br>Please open a new one and try again." | |||
) % osp.basename(filename), QMessageBox.Ok) | |||
|
|||
def set_current_client_working_directory(self, directory): | |||
"""Set current client working directory""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. at the end of the docstring
@@ -206,6 +206,10 @@ def get_source(self, objtxt): | |||
if valid: | |||
return getsource(obj) | |||
|
|||
def set_cwd(self, dirname): | |||
"""Set current working directory""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. at the end of the docstring
@@ -81,6 +81,11 @@ def is_running(self): | |||
else: | |||
return False | |||
|
|||
def set_cwd(self, dirname): | |||
"""Set shell current working directory""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. at the end of the docstring
def set_cwd(self, dirname): | ||
"""Set shell current working directory""" | ||
return self.silent_execute( | ||
"get_ipython().kernel.set_cwd(r'%s')" % dirname) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format is nicer to use
Fixes #3561