-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom executable / custom language #52
Comments
Currently, |
sorta related if you end up looking at this - I tried to wrap my executor in a local script, but it looks like this doesn't work either (through no fault of your own) ```{.bash .cb-nb executor="./local.sh"}
echo hi
``` ``` {.error .sysConfigError}
SYS CONFIG ERROR in "post.md" near line 88:
Could not find executable "local.sh"
``` I think this is because of the (surprising to me) behvaiour of import pathlib
p = pathlib.Path("./local.sh")
print(p.as_posix())
# "local.sh" :( |
…stom executables relative to the working directory (#52), added first-chunk setting args
The new dev version on GitHub adds a new setting
I've also changed the handling of Finally, I've added a new settings Let me know if these new settings have any significant limitations for the sort of thing you are trying to do. I'm working on a few unrelated features, and as soon as those are finished there will be a new release and a new version on PyPI, probably within a few days. |
Woohoo, that looks pretty general to any situation! Ill have a play with the new release. |
Hey,
Thanks for this project, seems to nearly fill exactly what I was looking for.
I am getting stuck on one thing - I'm writing shell code cells, but I'm wanting to use a custom executable/shell for these. For this example let's say I want to use
/usr/bin/fish
, but full disclosure, what I really want is to get codebraid to run its stuff in a container, by passing the executablepodman run -it docker.io/ubuntu:21.10
.When passing
executable=
to the shell session block as per docs, I get an "executable not found" error:When passing
executable=
to the shell session block as a list because I'm guessing it might get send to subprocess.run, that block doesn't run and future blocks use bash directly.Is there some permutation like the above that's meant to work with shell blocks?
If not, is there a way I can set up a new language by writing the config file in my project, without needing to fork codebraid locally?
Simple answer to both might be "no", no worries if so :)
Thanks!
The text was updated successfully, but these errors were encountered: