-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Using native menu actions of the notebook as 'Rename' its a point of failures #133
Comments
Hi @ehiverson using some options that are given by the original notebook menu are not supported. If you want to rename the notebook, you should save a new notebook using the plugin's toolbutton (:gear:) without using previously the rename option (maybe we could implement a rename action available from the toolbutton). @ccordoba12 what we should do about that kind of actions that trigger changes in the file system from the notebook's 'native' menu?, Should we try to create actions for them that the plugin could handle? |
That's quite hard. We should try to disable them, but I don't know how... |
Sorry for involving myself here, but isn't there any way of intercepting the DOM and modify it to prevent showing this menu? |
You are right @andfoy 👍 Note: this could be helpful here: https://stackoverflow.com/a/18414401 |
After PR #264, it is no longer possible to rename from within the notebook. |
@ehiverson commented on Sun Oct 29 2017
Description
I've experienced some odd behavior lately on Spyder. This particular problem was from closing a notebook that I had renamed using File -> Rename. However, after doing that action, the name represented by the tab did not change. And upon closing the window there is a FileNotFoundError.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I'd expect the tab to close, but instead it gives this error.
Please provide any additional information below
File "c:\users\erik\appdata\local\programs\python\python35-32\lib\site-packages\spyder_notebook\notebookplugin.py", line 359, in close_client
nb_contents = nbformat.read(path, as_version=4)
File "c:\users\erik\appdata\local\programs\python\python35-32\lib\site-packages\nbformat_init_.py", line 138, in read
with io.open(fp, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Erik\Documents\Education\Data Science\Untitled.ipynb'
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: