Skip to main content

Questions tagged [enthought]

Enthought provides scientific and analytic software, training, and consulting solutions utilizing Python. The Enthought Canopy (formerly EPD, or Enthought Python Distribution) software platform includes an integrated analysis and application development environment plus a Python distribution with over 200 pre-compiled core scientific and analytic libraries such as SciPy, NumPy, Pandas, Matplotlib, and IPython.

0 votes
1 answer
75 views

Mayavi volume does not render colors, until altered interactively. Thus can't save in the batch mode

I am working on a 3D visualization, in which I would like to mark part of the space, thus drawing something like a semi-transparent cloud in a given color. I was googling for recipes and here is what ...
Maciek's user avatar
  • 792
1 vote
0 answers
11 views

How to add an AboutBox to a pyface TasksApplication?

For example, how to change the examples/application/python_editor code to add an AboutAction which needs its application attribute to be set? At the time it is required, i.e. in the definition of ...
Yves Surrel's user avatar
1 vote
2 answers
577 views

How to specify variable-length tuple of specific type in traits?

from traits.api import HasTraits, Str, Tuple class Data(HasTraits): values = Tuple(Str, ...) data = Data(values=("a", "b", "c")) Output: TraitError: The '...
Hisham Syed's user avatar
0 votes
2 answers
93 views

Enthought traits.api TraitList() doesn't seem to support an item_validator

In some applications, I've found that Enthought Traits.api is a helpful addition to support static variable types in python. I'm trying to use the TraitList() item_validator keyword, but using the ...
Mike Pennington's user avatar
1 vote
1 answer
91 views

Chaco stacked bar plot with different colour for each bar and segment

I am trying to control the colour for each bar and each bar segment, in a Chaco stacked bar plot. For example, running Chaco's stacked bar plot example gives, How do I turn it into this monstrosity? ...
Daniel Farrell's user avatar
2 votes
1 answer
342 views

How should I access Cheetah Template() variable placeholders in an object instance?

I'm trying to set up an object instance that will provide values to the Cheetah3 text templating engine. This is my text template script... #filename: py_text_template.py from traits.api import ...
Mike Pennington's user avatar
2 votes
0 answers
89 views

Enthought Traits Equivalent of dataclasses.dataclass frozen=True?

How can I make Enthought HasTraits class instances immutable post initialization - something equivalent to @dataclasses.dataclass (frozen=True) ? Thanks, /jim Python 3.9.4 Traits 6.2
jim vickroy's user avatar
0 votes
0 answers
94 views

Differential equations with coupled derivatives in python

I am trying to solve a set of differential equations using sympy and scipy, but cannot figure out how to bring them in the appropriate form. In brief, I have a set of two coupled second order ...
David's user avatar
  • 9
2 votes
1 answer
797 views

AttributeError: 'TraitCompound' object has no attribute 'clone'

Let's say I want to create, using the Traits package, a "bases" attribute that can be a 'none' string or a dictionary with keys which are ‘hrf’ or ‘fourier’ or ‘fourier_han’ or ‘gamma’ or ‘fir’ and ...
servoz's user avatar
  • 657
1 vote
1 answer
69 views

pyface FileDialog with different default filename when wildcard changes

I would like to provide a user with different default file names based on the wildcard that they select. It seems that pyface.FileDialog inherits from HasTraits so I should be above to observe it's ...
Daniel Farrell's user avatar
1 vote
1 answer
92 views

How to automatically accommodate different display resolutions in Chaco plots?

I just upgraded to a new laptop w/ a UHD 4K display. It looks beautiful, but my Chaco plot labels are now illegibly small. I could solve the problem for myself, by increasing the font size of these ...
dbanas's user avatar
  • 1,838
1 vote
2 answers
294 views

How do I make an edit_traits() GUI item responsive to changes in its dependencies?

I'm designing a HasTraits subclass with dependent properties: #!/usr/bin/env python # Example for SO question on dynamically changing Dict contents. from traits.api import HasTraits, Dict, ...
dbanas's user avatar
  • 1,838
0 votes
1 answer
142 views

Is there a way to install "starbase" for Enthought Canopy Python?

I have Enthought Canopy Python 3.5 on my Windows and am trying to install the "starbase" package into it. However, starbase is not in the Package Manager in Enthought Canopy. Is there a workaround ...
Stanleyrr's user avatar
  • 867
0 votes
3 answers
173 views

How do I update the dictionary of a mapped trait, after I've already constructed it?

I need to update the dictionary of a mapped trait some time after initial trait creation. How do I do this? The following code: from traits.api import (HasTraits, Trait) class bar(HasTraits): ...
dbanas's user avatar
  • 1,838
0 votes
1 answer
63 views

Enthought Canopy Package Manager error on MacOs High Sierra

I have a problem with installing packages via the built in Package Manager of enthought Canopy. I tried to use the "Upgrade all packages", but it failed. Beforehand, I tried to solve my problem ...
Gergely Mathe's user avatar

15 30 50 per page
1
2 3 4 5
56