ipynb icon indicating copy to clipboard operation
ipynb copied to clipboard

Will there be Python 2 support?

Open yangvz opened this issue 8 years ago • 2 comments

In non-interactive python 2, we can use from __future__ import absolute_import to force explicit relative import. This is not working when, for example, we write some vanilla python files and relative-importing them from a notebook. I tried pip install git+https://github.com/ipython/ipynb but it gives that it requires python 3. Is there any workaround about this?

yangvz avatar Nov 19 '16 06:11 yangvz

A lot of the code depends on new machinery introduced in Python 3.4, so at least for now there is no Python 2 support. It could possibly be hacked on at a later date, depending on how important it is to people :) How important is support for python < 3.4 support for you?

On Fri, Nov 18, 2016 at 10:59 PM, yangnw [email protected] wrote:

In non-interactive python 2, we can use from future import absolute_import to force explicit relative import. This is not working when, for example, we write some vanilla python files and relative-importing them from a notebook. I tried pip install git+https://github.com/ipython/ipynb but it gives that it requires python 3. Is there any workaround about this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ipython/ipynb/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB23mwbs8og9qdYt8VktDzCgsfCUbn_ks5q_p5KgaJpZM4K3Lt7 .

Yuvi Panda T http://yuvi.in/blog

yuvipanda avatar Nov 19 '16 09:11 yuvipanda

It's a finance project. Since it is not so big, the feature itself is not that important.

yangvz avatar Nov 22 '16 12:11 yangvz