Replies: 2 comments 11 replies
-
Put your code in a Python script, or put your code cell in a Quarto document, then respectively source or include (https://quarto.org/docs/authoring/includes.html). |
Beta Was this translation helpful? Give feedback.
11 replies
-
Thank you very much for you support
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
I am writing a book with Quarto that consists of 2 qmd files with Python code.
I decided to split my code into two files for better readability.
Is there a good way to reuse code from the first notebook in the second one, such as importing libraries and defining lists that I have defined at the end of the first notebook?
Or can I only copy and paste the code and refer to the corresponding parts of file 1 in file 2?
Thank for your help.
Here is an exemple:
Notebook 1 (Data cleaning)
Notebook 2 (Data analysis)
Beta Was this translation helpful? Give feedback.
All reactions