-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incomplete kernel search path (#246)
* add default kernel config and ~/.local search path * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * using kernelspec_dirs to find kernelsepce resource * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove useless code * correct kernelspec path in post exec cell * fix ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: David Brochart <[email protected]> * trigger GitHub actions * bump fastapi>=0.87.0 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: David Brochart <[email protected]>
- Loading branch information
1 parent
9e5009f
commit 465551a
Showing
5 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from fps.config import PluginModel, get_config # type: ignore | ||
from fps.hooks import register_config # type: ignore | ||
|
||
|
||
class KernelConfig(PluginModel): | ||
default_kernel: str = "python3" | ||
|
||
|
||
def get_kernel_config(): | ||
return get_config(KernelConfig) | ||
|
||
|
||
c = register_config(KernelConfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters