-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe2ba5e
commit ef4a2b7
Showing
10 changed files
with
157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
tests/data/notebooks/inputs/ipynb_xonsh/xonsh_example.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"35196\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"len($(curl -L https://xon.sh))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 4, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"xonsh_example.ipynb\n", | ||
"\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"for filename in `.*`:\n", | ||
" print(filename)\n", | ||
" du -sh @(filename)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Xonsh", | ||
"language": "xonsh", | ||
"name": "xonsh" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": "shell", | ||
"file_extension": ".xsh", | ||
"mimetype": "text/x-sh", | ||
"name": "xonsh", | ||
"pygments_lexer": "xonsh", | ||
"version": "0.14.4" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
17 changes: 17 additions & 0 deletions
17
tests/data/notebooks/outputs/ipynb_to_Rmd/xonsh_example.Rmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: Xonsh | ||
language: xonsh | ||
name: xonsh | ||
--- | ||
|
||
```{xonsh} | ||
len($(curl -L https://xon.sh)) | ||
``` | ||
|
||
```{xonsh} | ||
for filename in `.*`: | ||
print(filename) | ||
du -sh @(filename) | ||
``` |
15 changes: 15 additions & 0 deletions
15
tests/data/notebooks/outputs/ipynb_to_hydrogen/xonsh_example.xsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Xonsh | ||
# language: xonsh | ||
# name: xonsh | ||
# --- | ||
|
||
# %% | ||
len($(curl -L https://xon.sh)) | ||
|
||
# %% | ||
for filename in `.*`: | ||
print(filename) | ||
du -sh @(filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: Xonsh | ||
language: xonsh | ||
name: xonsh | ||
--- | ||
|
||
```xonsh | ||
len($(curl -L https://xon.sh)) | ||
``` | ||
|
||
```xonsh | ||
for filename in `.*`: | ||
print(filename) | ||
du -sh @(filename) | ||
``` |
16 changes: 16 additions & 0 deletions
16
tests/data/notebooks/outputs/ipynb_to_myst/xonsh_example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
kernelspec: | ||
display_name: Xonsh | ||
language: xonsh | ||
name: xonsh | ||
--- | ||
|
||
```{code-cell} xonsh | ||
len($(curl -L https://xon.sh)) | ||
``` | ||
|
||
```{code-cell} xonsh | ||
for filename in `.*`: | ||
print(filename) | ||
du -sh @(filename) | ||
``` |
15 changes: 15 additions & 0 deletions
15
tests/data/notebooks/outputs/ipynb_to_percent/xonsh_example.xsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Xonsh | ||
# language: xonsh | ||
# name: xonsh | ||
# --- | ||
|
||
# %% | ||
len($(curl -L https://xon.sh)) | ||
|
||
# %% | ||
for filename in `.*`: | ||
print(filename) | ||
du -sh @(filename) |
13 changes: 13 additions & 0 deletions
13
tests/data/notebooks/outputs/ipynb_to_script/xonsh_example.xsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Xonsh | ||
# language: xonsh | ||
# name: xonsh | ||
# --- | ||
|
||
len($(curl -L https://xon.sh)) | ||
|
||
for filename in `.*`: | ||
print(filename) | ||
du -sh @(filename) |