Comments (4)
@pearzt this issue will be fixed by #160
from thicket.
@pearzt the newest version of Thicket (2024.1.0) should resolve this. Since that release, all the re-exports that use seaborn
are now protected by a try-except-else
block (found here).
As a result, running import thicket
will no longer produce any errors related to not having seaborn
. However, if you run import thicket.stats
without having seaborn
installed, you will get the following message (not an error):
Seaborn not found, so skipping imports of plotting in thicket.stats
To enable this plotting, install seaborn or thicket[plotting]
One last thing to be aware of: to prevent these errors, we had to change how users import stats functions. As of this release, if you want to access the stats functions (e.g., mean
, std
, display_boxplot
), you need to import them from thicket.stats
. So, for example, if you wanted to import mean
, you would do:
from thicket.stats import mean
@pearce8 we should probably make a note of this somewhere in our docs.
from thicket.
@ilumsden I can still reproduce the issue with Thicket 2024.1.0. It seems to me that there still is an "import path" that imports seaborn unconditionally:
>>> import thicket
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "[...]/lib/python3.11/site-packages/thicket/__init__.py", line 13, in <module>
from . import (
File "[...]/lib/python3.11/site-packages/thicket/stats/__init__.py", line 24, in <module>
from .display_violinplot import display_violinplot_thicket
File "[...]/lib/python3.11/site-packages/thicket/stats/display_violinplot.py", line 7, in <module>
import seaborn as sns
ModuleNotFoundError: No module named 'seaborn'
from thicket.
@pearzt thanks for checking. I just noticed that two of the "display" modules are not being protected by the "try-except-else" guard. I'll fix that.
from thicket.
Related Issues (20)
- Bug: unhashable list in get_unique_metadata
- Bug: loading PCP code looks for NPM HOT 1
- Use metadata_column_to_perfdata in ExtraP
- Use MultiIndex for ExtraP Functions
- Columnar Join and Sync Nodes Consequence HOT 2
- Docs: update images
- No unit tests for Statsframe HOT 1
- Tree Bug HOT 1
- RADIUSS Tutorial Reflection HOT 2
- Extra-p optional vs required dependency
- CI fails because it can't fetch NodeJS
- Editable installs break due to setuptools HOT 3
- Add a Pipfile to enable pipenv-based environments
- Common commands to run when debugging installation issues HOT 1
- Adds CI runs that exclude optional dependencies
- Unexpected output th.stats.std
- filter_stats does not correctly update index in statsframe HOT 1
- add more_itertools to requirements.txt HOT 2
- Split test fixtures in test_filter_metadata.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thicket.