Giter Club home page Giter Club logo

include-code-files's People

Contributors

b3 avatar samedwardes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

drriguz

include-code-files's Issues

Can not install the quarto filter include-code-files using quarto add

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.

code-fold: true is not working while using the include-code-files quarto filter

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

image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.