b3 / include-code-files Goto Github PK
View Code? Open in Web Editor NEWInclude code from source files in pandoc
License: MIT License
Include code from source files in pandoc
License: MIT License
Hello, I am trying to install this quarto filter in my Windows machine by running the command,
quarto add b3/include-code-files
But I am getting the following error,
Quarto extensions may execute code when documents are rendered. If you do not
trust the authors of the extension, we recommend that you do not install or
use the extension.
? Do you trust the authors of this extension (Y/n) » Yes
[>] Downloading
(|) Unzippinginclude-code-files-main/include-code-files.lua: Can't create '\\\\?\\C:\\Users\\User\\AppData\\Local\\Temp\\quarto-session97849a7c\\d153801e\\0cb468cc\\archive\\include-code-files-main\\include-code-files.lua'
tar: Error exit delayed from previous errors.
[>] Unzipping
ERROR: Failed to unzip extension.
include-code-files-main/include-code-files.lua: Can't create '\\\\?\\C:\\Users\\User\\AppData\\Local\\Temp\\quarto-session97849a7c\\d153801e\\0cb468cc\\archive\\include-code-files-main\\include-code-files.lua'
tar: Error exit delayed from previous errors.
Quarto Version
$ quarto --version
1.2.235
and using Windows 10 x64 (build 19044)
Thanks.
While this filter does include codes from an External file, code-fold: true
or code-summary: "some text"
is not working for that code chunk (that includes the source code). A quick reproducible example as follows,
test.py
# code from test.py
for name in ["Sam", "Jake"]:
print(f"Hello {name}!")
test.qmd
---
title: "Including Code"
format:
html:
code-fold: true
code-summary: "Python Code"
jupyter: python3
filters:
- include-code-files
---
## Python
```{.python include="test.py"}
```
```{python}
print("Hello World")
```
output
I am using Quarto version,
$ quarto --version
1.2.235
I am also actually having the issue #2 , so I have copied the include-code-files
folder and put it under a _extension
directory to use it.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.