Skip to content

Working in headless environments - #1

Open
ranigb wants to merge 3 commits into
jan-oko:mainfrom
ranigb:main
Open

Working in headless environments#1
ranigb wants to merge 3 commits into
jan-oko:mainfrom
ranigb:main

Conversation

@ranigb

@ranigb ranigb commented Jul 3, 2025

Copy link
Copy Markdown

Changes were made to support environments that do not support graphic interfaces. Therefore, we removed the dependency on pandagui, added the option to save to json file, and few other minor changes

Ran Gilad-Bachrach added 2 commits July 4, 2024 22:36
2) replace qt packend for matplotlib with tk to prevent crash when used
from command line
3) fix tests in the tests directory
2) fix to the report of number of columns tested
3) handle running in colab

@jan-oko jan-oko left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

In general I'm guessing you asked me to pitch in for more of a high-level review, and from that perspective I think it's all right (at least as much as I can say from flipping through my pretty old code).

Take my suggestions or not (I don't think it's too important), and when you want tell me and I'll publish the update.
I should probably also give you permissions to do that, send me a username and I'll add you.

Comment thread setup.py
Comment on lines 11 to 20
setup(
name='dftest',
packages=['dftest'],
version='0.4.0',
version='0.5.4',
scripts=['bin/dftest'],
install_requires=deps,
description='A library for testing and analyzing data integrity.',
author='Atai Ambus',
author='Atai Ambus & Ran Gilad-Bachrach',
license='MIT'
)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Consider instead using extra_requires

setup(
    name='dftest',
    packages=['dftest'],
    version='0.5.4',
    scripts=['bin/dftest'],
    install_requires=deps,
    extras_require={"gui": ["pandasgui"]}
    description='A library for testing and analyzing data integrity.',
    author='Atai Ambus & Ran Gilad-Bachrach',
    license='MIT'
)

Which would allow anyone who want to do pip install dftest[gui]

And still use the extra features. Then instead of doing if utils.in_colab() you could use try-except to skip import errors.

Alternatively if this really is useless (or you don't want to deal with changing the ifs) you should probably just remove the commented code (you can find it later in github anyway, if you need it).

Also, I'm guessing that the version is supposed to be 0.5.0 and not 0.4.0.

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.

3 participants