pygwalker
pygwalker copied to clipboard
Handle psutil dependency on emscripten
Summary
- avoid installing psutil on emscripten targets so micropip can install pygwalker in JupyterLite
Testing
- not run (not requested)
https://chatgpt.com/codex/tasks/task_e_690a9d90947883228cb7cc50e0cd3722
[!NOTE] Make
psutiloptional on emscripten and harden nbconvert detection by safely reading the parent process cmdline.
- Utils / environment checks:
- Safely import
psutilwith fallback toNonewhen unavailable.- Add
_get_parent_cmdline()with robust exception handling and use it incheck_convert()to detectjupyter-nbconvert.- Packaging:
- Make
psutila conditional dependency (sys_platform != "emscripten") inpyproject.toml.Written by Cursor Bugbot for commit 5100dc4b7e77adcd30847e529ad310008891d425. Configure here.