Conversation
|
FWIW the tests pass on py 27 but importing numpy fails with an ImportError for multiarray on py 33. If anyone knows how to make that work on Travis, I suspect the tests would pass on py 33 as well. |
|
Will look into that with more detail, see also comment on other PR #2 that maybe we want to have ipython/ipython#4659 totally integrated into IPython before pushing this repo forward. One problem I might see with this as it is, is that it makes traitlets requiring numpy, and I'm not sure it is a good idea. We can probably conditional loading that make NDArray availlable IIF numpy is availlable, but I would like to find a better solution. |
|
The actual module could test that the class name matches instead of the
|
|
Is ipython/ipython#4659 waiting on something in particular? |
|
I agree that traitlets shouldn't require numpy, but if you have to import it as The Python 3 testing is a problem with Travis - you're installing As an aside: if anyone has the resources to set up a building/testing service based on conda envs instead of virtualenvs, so we don't need that kind of hack, I think the SciPy ecosystem would be very grateful. |
Mainly that I got time to polish it, that is to say move the docs and do cross refs and that we agree on what should be exposed in traitlets where. Basically I don't really like the fact that you can import
I haven't read the code yet, so if it is like that I'm find with it too. |
|
I didn't touch the [edited for clarity] |
|
@maedoc just wondering what's the status of this? class A(HasTraits):
arr = NDArray(...)
a = A()
a.arr = np.array(...) # ==> notify
a.arr[0] = 1 # ==> notify
a.arr += 1 # ==> notify
... |
|
We will restart Traitlets from scratch after 3.0, (spliting it again from IPython) Once this is done, the more the merrier. |
|
OK. Any idea of the timeframe? What's wrong with the current implementation? |
A few month.
Nothing, this just copy and past of old IPython version, which has evolved too much with widgets. I just need to find a week to say : and re-do the work, then release mutex. It's doable in 2 days if I don't move the documentation now, and I don't try to move the |
|
@rossant I seem to have lost this repo, but |
d163288 to
bfa557f
Compare
Fix typo s/applicatinos/applications/ in setup.py
Change logic for legacy magic methods
|
@minrk why no action? |
|
I think that because most of that is in numtraits package in |
|
I thought we were going to put these types of things here: |
This adds an NDArray trait type that validates on shape and dtype constraints.