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

I got an error with your recipe notebook #1

Closed
wgong opened this issue Nov 30, 2012 · 4 comments
Closed

I got an error with your recipe notebook #1

wgong opened this issue Nov 30, 2012 · 4 comments

Comments

@wgong
Copy link

wgong commented Nov 30, 2012

Error: Recipe 6 could not be imported
Exception: [Errno 2] No such file or directory: '-f'

see a screenshot at :
http://dl.dropbox.com/u/54552252/as-recipes-magics-err.jpg

@debjan
Copy link
Owner

debjan commented Dec 1, 2012

Not all recipes can be imported.
If recipe depends on module not available in user packages it reports exception.

That recipe on screenshot depends on xlrd package. Do you have it available to Python interpreter?

Also now %place function is available, so you can try that also - it will put the recipe on input-line, then just execute it

@debjan
Copy link
Owner

debjan commented Dec 1, 2012

Ah I see what's wrong - that recipe can't be imported as is - it wants to process all xls files in current folder on runtime
Although recipes should be generally safe, it's good practise to inspect a bit the code with %fetch function before importing
I can only recommend again, you now use %place function and customize the code to do what you intended

@wgong
Copy link
Author

wgong commented Dec 1, 2012

OK, Thank you

@wgong
Copy link
Author

wgong commented Dec 1, 2012

I tried a recipe to convert CSV to XML, it works. One suggestion, can you hook up your search with StackOverflow?
I use it often, it may be less clean and organized than ActiveState recipe. I am new to ipynb and will learn something from your work. Thanks again.

@debjan debjan closed this as completed Dec 8, 2012
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

2 participants