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

Support relative imports from inside notebooks #24

Merged
merged 1 commit into from
Nov 14, 2016
Merged

Conversation

yuvipanda
Copy link
Collaborator

Fixes #4

if ip.user_ns['__package__'] is None:
ip.user_ns['__package__'] = __package__
except ImportError:
# If we don't have IPython installed at all, let it go.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Let it go", let it go ...

@Carreau Carreau merged commit efbecf3 into master Nov 14, 2016
@minrk minrk deleted the relative-imports branch February 14, 2017 15:46
tonyfast added a commit to deathbeds/ipynb that referenced this pull request Jan 2, 2020
* Test with setup.py
* use tox for testing
* Add doctests into tox and push failing test suite
* Pytest plugin
* IPython extension supports persistent reloading.
* Readme works as a command line script
* Use a context manager to add and remove details to the file finder.
* Add the ipython extension to the end of the filefinder to avoid name collistions.  Use the contentmanager or extension to change the priority
* Clean up the loader mechanism.
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

Successfully merging this pull request may close these issues.

2 participants