biolab / biolab/orange3

Clean Orange.__init__.py

Open
#5,692 1 comment 0 reactions 0 assignees View on GitHub
meal wish
Dominant language
Python
Stars
5.7k
Forks
1.1k
Avg merge
12d 2h
Merged PRs (30d)
1

Description

`Orange.__init__.py` has some stuff that is Qt / openGL specific and handles some strange cases. This code unnecessary complicated installation for users that just want to use Orange for scripting (see #5688).

We need to:
- [ ] Figure out what is still necessary. Hopefully, nothing is.
- [ ] Move that necessary stuff somewhere else, perhaps to `Orange.canvas` or to the orange-canvas-core.

This is a `meal` because it required extensive testing.

Contributor guide

Open the contributing guide

Research direction

Start by reading Orange.__init__.py and tracing the Qt/OpenGL-specific cases, then compare what belongs in Orange.canvas or orange-canvas-core. Test installation and scripting-only imports, along with the canvas path; done means unnecessary GUI dependencies no longer complicate scripting while required canvas behavior still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.