Skip to content

Commit 5632eda

Browse files
kr-2003anutosh491
authored andcommitted
updated docs regarding file magic
1 parent e5c6505 commit 5632eda

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

docs/source/file_magic.png

24.6 KB
Loading

docs/source/magics.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Here are the magics available in xeus-cpp.
1212
%%xassist
1313
========================
1414

15-
Leverage the large language models to assist in your development process. Currently supported models are Gemini, OpenAI, Ollama.
15+
Leverage the large language models to assist in your development process. Currently supported models are Gemini, OpenAI, Ollama. This magic command is supported in only xeus-cpp.
1616

1717
- Save the api key (for OpenAI and Gemini)
1818

@@ -54,3 +54,23 @@ Leverage the large language models to assist in your development process. Curren
5454
.. image:: gemini.png
5555

5656
.. image:: ollama.png
57+
58+
59+
%%file
60+
========================
61+
62+
This magic command copies the content of the cell in a file named `filename`. This magic command is supported in both xeus-cpp and xeus-cpp-lite.
63+
64+
.. code::
65+
66+
%%file [-a] filename
67+
68+
- Example
69+
70+
.. image:: file_magic.png
71+
72+
- Optional argument:
73+
74+
+------------+---------------------------------+
75+
| -a | append the content to the file. |
76+
+------------+---------------------------------+

0 commit comments

Comments
 (0)