Comments (3)
I don't understand: if I run the code in a Jupyter cell it works perfectly fine.
Yes, because Jupyter (like the REPL) uses different scoping rules compared to regular Julia files. This is not the case when Literate runs the code.
Is there a way to have Literate just create the notebook without running the cells?
Yes, pass execute = false
to Literate.notebook
.
from literate.jl.
This errors when you execute the notebook with Literate you mean? This is because Jupyter uses https://github.com/JuliaLang/SoftGlobalScope.jl so I guess Literate has to do the same for notebooks.
from literate.jl.
I don't understand: if I run the code in a Jupyter cell it works perfectly fine.
Is there a way to have Literate just create the notebook without running the cells? That is, so it will succeed even if the cells contain invalid code.
from literate.jl.
Related Issues (20)
- suggestion: mention MarkdownTables.jl in the manual HOT 2
- Add link to Weave.jl
- Empty code cells in Jupyter notebook and errors allowed? HOT 8
- Question: checking for all `[deps]` in `docs/Project.toml` HOT 5
- UndefVarError occurs while execution of generated notebook HOT 1
- Plots.default propagating between different Literate examples? HOT 3
- Standard multiline doc strings HOT 4
- Is it possible to get comments inside a code block while converting to markdown? HOT 2
- Remove `@raw html` decorations if target is Jupyter notebook HOT 2
- Literate does not strip notebook references when source spans multiple lines HOT 2
- RequestError: HTTP/2 302 (Operation too slow ...) in Literate/Documenter build HOT 4
- "Makefile" like capability for Literate examples? HOT 4
- Issue with directories HOT 6
- Any possible interaction with the org-babel literate programming? HOT 2
- Hide clode blocks? HOT 1
- `Literate.markdown` with `execute=true` does not truncate array output HOT 2
- notebook() ignores outputdir?
- Jupyter notebooks not working when running in different Julia versions HOT 3
- Feature request: Simulated REPL sesstion for markdown output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from literate.jl.