Comments (7)
I think the op is asking, how can you hide a whole code block? We can append #hide
at the end of each line. But that seems to be a pretty tedious process.
from literate.jl.
Same syntax as Documenter:
$ cat test.jl
# Executed, no output
x = 1
nothing #hide
# Executed, no output
y = 2;
# Executed but hidden
z = 3 #hide
#-
x + y + z
$ julia -e 'using Literate; Literate.markdown("test.jl"; execute=true)' 2>/dev/null
$ cat test.md
```@meta
EditURL = "<unknown>/test.jl"
```
Executed, no output
````julia
x = 1
````
Executed, no output
````julia
y = 2;
````
Executed but hidden
````
3
````
````julia
x + y + z
````
````
6
````
from literate.jl.
I think it would helpful to have per-block code-fencing. Documenter.jl has support for @repl
, @example
, and @setup
which are treated differently. It would be useful to indicate which code blocks to fence in what way. Appending # hide at the end of each line is tedious and also shows up in script output, which is ugly.
from literate.jl.
I believe all of this is supported already? I don't understand what you mean with the last part.
from literate.jl.
How can I make a chuck execute but without trying to capture its output?
How can I run something without displaying it in the output file?
I don't think you allow this granularity per chunk.
from literate.jl.
I am also interested in the possibility of having some blocks not execute e.g. if I have a document with some stuff at the beginning I would like to show, then some interactive (readlines()
) parts later on, I might like to execute the earlier cells in a notebook, but leave the later ones unexecuted so as not to block the process.
from literate.jl.
I see there are changes since this.
Is there a block control in the pipepline?
from literate.jl.
Related Issues (20)
- Allow AbstractDict config HOT 1
- How to create jupyter's raw type of cells? HOT 3
- How to properly caputure LaTeXString output in markdown output? HOT 4
- Passphrase for my SSH key HOT 1
- Literate will ask for SSH passphrase multiple times HOT 1
- Escaping link interpretation for Documenter links HOT 3
- FR: Output to Quarto markdown flavour HOT 3
- Option to capture errors? HOT 1
- FR: Supporting flavor-specific filtering
- consecutive (or custom) image filenames HOT 6
- 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
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.