-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
IndentationError: unexpected indent #29
Comments
I ran into a similar problem. In my case the cell above was markdown and the the last line in the cell was part of an indented list. The first line of the code cell started with 'def' Adding an extra new line on the bottom of the markdown fixed the problem. hard to believe its a parsing error given the implementation of ipynb uses the abstract syntax tree. |
I had a markdown cell with no trailing newline and the first line of the following cell wasn't being executed - looks like the same issue. I was able to reproduce here: https://gist.github.com/alexlouden/4d8cae9643b9118e4c3c23d0b44e12d7 You can see that only |
I'm considering getting rid of the 'defs' feature completely, since I am unsure if we can ever implement it in a way that's consistent and safe in all cases... Would you all be able to use the 'full' import without problems? |
I was actually using |
Just tried version 0.5 from Github and looks like it's fixed - thanks! Releasing it to PyPi would be great, if you can? |
I just released to pypi! Can you test?
…On Sun, Oct 22, 2017 at 11:16 PM, Alex Louden ***@***.***> wrote:
Just tried version 0.5 from Github and looks like it's fixed - thanks!
Releasing it to PyPi <#26> would
be great, if you can?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAB23hSdXfnRyooMCPObQ3zLtJ_3i7QXks5svC8ygaJpZM4MdlsS>
.
--
Yuvi Panda T
http://yuvi.in/blog
|
It's working, thanks!
|
* Create a watchdog trick for modules that is sensitive to notebook paths Fixes ipython#28 * Catch an error when a file is created in the watcher * Use the watcher while developing importnb * Rename the unittests to something more canonical. * Add the github pages deployment to travis. * Fix the watcher instructions in the readme. * Add the watchdog requirement for the setup * Manually install pyyaml from to pass 3.7dev * Add context to the readme * Deploy pages on any travis_branch * Escape the profile read error int he ipython extension * add pip to the cache on travis
When using
import ipynb.fs.defs.myipynb
, I get an error:The cell is:
I don' t know why would it try to import a for loop like this.
The text was updated successfully, but these errors were encountered: