[REQUEST] Initialize Warp upon import
Open
Nobody has claimed this yet.
feature request
runtime
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 624
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
Description
import warp as wp should automatically initialize Warp.
Currently, wp.init() is called from functions that require Warp to be initialized.
Note that some configuration options in Warp must be set before initialization:
warp.config.quietis used to minimize the printouts when Warp initializeswarp.config.kernel_cache_diris used to set the kernel cache prior to initialization, although it can be changed after initialization using now-undocumented meanswarp.config.enable_mempools_at_initis used to disable memory pools at initialization
Additional comments (5/7):
- We will need to quiet the
wp.init()printout by default - We also don't want an environment variable to change the above behavior (e.g.
WP_INIT_VERBOSE) - Need to add a function that prints out the same or similar information that
wp.init()currently does, e.g.wp.print_environment_info(return_string=False)
Context
User experience?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing wp.init() entry points and the import path, then review the listed configuration options that must be set before initialization. Clarify the desired default output and the proposed print_environment_info behavior, including how import-time initialization and pre-initialization configuration should be tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100