Skip to content

Conversation

djacu
Copy link
Contributor

@djacu djacu commented Mar 17, 2023

Extract kernelFunc to modules/poetry.nix.

@djacu djacu requested a review from k1nkreet as a code owner March 17, 2023 05:46
@netlify
Copy link

netlify bot commented Mar 17, 2023

Deploy Preview for tweag-jupyterwith ready!

Name Link
🔨 Latest commit 59ed569
🔍 Latest deploy log https://app.netlify.com/sites/tweag-jupyterwith/deploys/6413fe99954d88000828df4d
😎 Deploy Preview https://deploy-preview-462--tweag-jupyterwith.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request March 17, 2023 05:51 Inactive
@GTrunSec
Copy link
Collaborator

GTrunSec commented Mar 17, 2023

Notice: #450 (comment), (I don't know why).

my solution: https://github.com/tweag/jupyenv/pull/450/files#diff-8bf585666371b85c4eb513ad2163c69e20eaf72b2faa18abc1a0884c9827d70fR136

Also, I think it is necessary to provide an additional option for poetryEnv, not only the problem of overalys, the most important thing is that pythonEnv can be passed from the outside. (we can simply add a group deps of jupyenv for other poetyEnv , then add it)

groups,
ignoreCollisions,
}: let
env =
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should move the env to the moduleType totally, and make sure the users are able to rescue the poetyEnv and pure python support. like that https://github.com/GTrunSec/jupyterWith/blob/dev/modules/types/poetry.nix#L136

Copy link
Collaborator

Choose a reason for hiding this comment

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

fixes #485

@@ -19,9 +21,78 @@
}: let
args = {inherit self system lib config name kernelName requiredRuntimePackages;};
kernelModule = import ./kernel.nix args;

kernelFunc = {
Copy link
Collaborator

@GTrunSec GTrunSec May 27, 2023

Choose a reason for hiding this comment

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

could we only keep some necessary args in the KernelFunc? (simplify it again)
https://github.com/GTrunSec/jupyterWith/blob/dev/kernels/available/python/default.nix#L7

@balsoft balsoft merged commit 97f76f9 into main Sep 11, 2023
@balsoft balsoft deleted the refactor/move-kernelFunc branch September 11, 2023 21:32
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