Skip to content
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

Unable to save empty notebook #131

Closed
andfoy opened this issue Oct 20, 2017 · 3 comments
Closed

Unable to save empty notebook #131

andfoy opened this issue Oct 20, 2017 · 3 comments

Comments

@andfoy
Copy link
Member

andfoy commented Oct 20, 2017

@paragguruji commented on Fri Oct 20 2017

Description

What steps will reproduce the problem?

  1. Create a new notebook (gets name untitled0)
  2. "Save as" with another filename in an existing local project folder

What is the expected output? What do you see instead?
Expected to see the file saved locally in the specified folder. Instead get this error dialog box.

Please provide any additional information below

File "C:\Users\Parag\Anaconda2\envs\mlenv\lib\site-packages\spyder_notebook\notebookplugin.py", line 399, in save_as
nb_contents = nbformat.read(original_path, as_version=4)
File "C:\Users\Parag\Anaconda2\envs\mlenv\lib\site-packages\nbformat_init_.py", line 138, in read
with io.open(fp, encoding='utf-8') as f:
IOError: [Errno 2] No such file or directory: 'c:\users\parag\appdata\local\temp\spyder\notebooks\untitled1.ipynb'

Version and main components

  • Spyder Version: 3.2.3
  • Python Version: 2.7.13
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.5.0  :  1.5.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
pandas >=0.13.1   :  0.20.3 (OK)
numpy >=1.7       :  1.13.1 (OK)
sphinx >=0.6.6    :  1.6.3 (OK)
rope >=0.9.4      :  0.10.5 (OK)
jedi >=0.9.0      :  0.10.2 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
sympy >=0.7.3     :  1.1.1 (OK)
cython >=0.21     :  0.26.1 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0;<6.0:  5.4.1 (OK)
pylint >=0.25  

@dalthviz
Copy link
Member

Hi @paragguruji I'm not being able to reproduce this error. Did you do something more than trying to save the empty notebook?

@dalthviz
Copy link
Member

dalthviz commented Nov 2, 2017

I think the problem here was the use of the File > Rename option as in #133 before using the Save as function of the toolbutton.

@jitseniesen
Copy link
Member

Closing this in favour of #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants