Environment setup: requiring cljc source files and possibility of using cljs
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- clojure
- Domain
- developer-experience, tooling
Research direction
Start by reproducing the setup with deps.edn, separate notebooks and src directories, lib.{name} namespaces, and the proposed :watch-paths configuration. Check the existing Clerk workflow and clj commands for requiring source files, then determine whether notebook execution via ClojureScript is supported; done means documenting the required setup or defining the implementation scope.
Written by the indexing model from the issue text.
Description
Hello all I'm having some issues with getting my clerk workflow setup and I would appreciate anyone's input on making this happen.
-
I have my project directory managed with deps.edn. This works perfectly fine when everything (aside from external dependencies) is defined within the notebook itself, but I have not had luck :require'ing source files from elsewhere in the directory. Ideally I would import it just as I would an external dependency or perhaps just use the same namespace and all of the definitions are loaded in, but another possibility might be to define the source files as another notebook directory via :watch-paths and use some clerk-specific mechanism to execute and run. Just want to get unblocked here.
The specifics of my case don't matter, but for generality let's say I have
notebooksandsrcdirectories, where the files undersrcare written using thelib.{name}namespace. What additional configuration,cljcommands, or clerk code do I need to execute in order use the code fromsrcin a notebook? Bonus points if where is a demo or example repo that already demonstrates this. -
Is it possible to execute notebooks via ClojureScript instead of Clojure? I suspect the answer is no, but if it's a reasonable lift I can certainly help in making this happen.
Thanks!
- Dominant language
- Clojure
- Stars
- 2.1k
- Forks
- 87
- Avg merge
- 3m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from nextjournal/clerk
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
Build with ssr failsOpen
Difficulty 3/5 Half a day Newbie friendliness 55/100
nextjournal/clerk#831 ·
-
Cross-Site WebSocket Hijacking in the dev server's /_ws endpoint leads to arbitrary code executionOpen
Difficulty 3/5 1-2 days Newbie friendliness 45/100
nextjournal/clerk#825 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
nextjournal/clerk#818 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
nextjournal/clerk#807 ·
All issues in nextjournal/clerk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
IOP tokens release blocker team qa team qa autotests WG adoption
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
penpot/penpot#13540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
izhangzhihao/intellij-rainbow-brackets#2903 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Data Studio semantic layer: clicking a table or metric row only opens it when you click the namePossibly taken @sanketpatel32 claimed this 1 day ago. Open.Needs Triage .Team/UXWest Priority:P3 Type:Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
metabase/metabase#88853 · 1 comment ·
Maintainers usually reply within 1 day