Dataset Viewer
Auto-converted to Parquet Duplicate
hexsha
stringlengths
40
40
ext
stringclasses
31 values
lang
stringclasses
31 values
max_stars_repo_path
stringlengths
6
511
max_stars_repo_name
stringlengths
6
120
max_stars_repo_licenses
stringclasses
716 values
avg_line_length
float64
2.66
102k
alphanum_fraction
float64
0.06
1
size
int64
59
10.4M
id
stringlengths
3
7
content
stringlengths
59
10.4M
3301bcbcb6d6f045a7f32883a6230c7329ccb474
py
python
section_4/4-1. Clustering-test.ipynb
taza1/Hands-On-Machine-Learning-with-Scikit-Learn-and-TensorFlow-2.0
['MIT']
43.958289
0.694214
42,036
0:0
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% # %config IPCompleter.greedy = True # %config I...
e56ba831f62b1c3c2a636d5730f9ec76d93dde5e
py
python
StyleGAN/StyleGAN.ipynb
dauviet92/ML-DL-Projects
['MIT']
39.250814
0.653719
37,071
0:1
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # # StyleGAN # # Generative adversar...
e53f367375976c9026f33a01e91487153e5c917b
py
python
Sketch.ipynb
grand-27-master/LGMVIP-DataScience
[]
20.333333
0.670833
960
0:2
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% img=cv2.imread('me.jpg') img = cv2.cvtColor(img...
0f227db78a3ad98b6fafed8e70a642a33f75c602
py
python
07. Self Correlation.ipynb
rajsingh7/Time-Series-Analysis-tutorial-from-Scipy-2016
[]
24.676923
0.674356
3,338
0:3
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python [default] # language: python # name: python3 # --- # %% # %matplotlib inline from matplotlib.py...
ab1d1e6ef25f30882507b4585f385c749cdbbe32
py
python
Modules/Practice/3. Prac_Pandas.ipynb
shonil24/Machine-Learning
[]
33.919149
0.667804
8,206
0:4
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # # Pandas Exercises # %% [markdown...
1daed532030674c15b6eb689b0a2c78dbcfa4fd5
py
python
Starbucks_Capstone_notebook.ipynb
shriyutha/Starbucks-Capstone-Project
[]
28.118124
0.689383
50,287
0:5
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # ## Starbucks Capstone Challenge # ...
1d69bdcde5b10b5ee2f70716c2466400681eb4f4
py
python
Fraud-detection_imbalanced/Oversampling_SMOTE.ipynb
dessytto/Fraud_Detection
[]
34.091429
0.731151
6,141
0:6
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # ### Context # It is important that...
105bbd07b672594c7dc22d8673c0982e31a20bd1
py
python
Ch03/08_Training_Dov2Vec_using_Gensim.ipynb
c-w-m/pnlp
['MIT']
38.32
0.690404
2,949
0:7
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] id="view-in-github" colab_type="text...
3e2ac64bf76f72eb7b857da913b26a6b01587b84
py
python
pyda-1.2.1-hw.ipynb
AlexeyUdod/netology_pyda
[]
26.9
0.633692
2,790
0:8
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.19.5 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # ## Задание 1 # %% [markdown] # Мы...
e4b7f86c8a47e1c22d976a16aa648abc4b641154
py
python
FF2018_VariabilityAnalysis.ipynb
pradysepulveda/FF2018
[]
37.391165
0.614808
47,797
0:9
"# ---\n# jupyter:\n# jupytext:\n# text_representation:\n# extension: .py\n# forma(...TRUNCATED)
End of preview. Expand in Data Studio

The Stack v2 Jupyter Notebooks as Scripts

This dataset contains script representations of the Jupyter notebooks in The Stack v2. It was created from the materialized Jupyter_Notebook split in jordangong/the-stack-v2-smollm3.

The output schema follows the Jupyter-script schema used by bigcode/starcoderdata, but this release is not deduplicated, PII-filtered, or otherwise equivalent to StarCoderData's filtered split.

Relationship to the SmolLM3 training mix

This release is an independent reproduction of the jupyter-scripts dataset component used in the SmolLM3 training mix. The pinned SmolLM3 stage-1 8T configuration lists jupyter-scripts among both its source dataset paths and tokenized dataset folders.

The reproduction also follows the guidance in BigCode's StarCoder2Data extras discussion. That discussion explains that StarCoder2's Jupyter-script extra was not published because the Software Heritage-backed data requires a separate agreement, and points users to the Stack v2 build code. This dataset reconstructs that missing component from an independently materialized Stack v2 snapshot.

Because the original SmolLM3/StarCoder2 training artifact is not publicly available for direct comparison, this release is not claimed to be byte-for-byte identical to it. The exact source commits, conversion procedure, validation results, and known differences are documented below.

Dataset summary

Item Value
Source notebooks 9,656,100
Converted scripts 9,478,641
Audited conversion failures 177,459
Conversion success rate 98.1622%
Parquet files 420
Parquet download size 48.11 GB (44.80 GiB)

The dataset has one train split. The Parquet files are stored directly under data/ as train-00000-of-00420.parquet through train-00419-of-00420.parquet.

Usage

Streaming is recommended because the Parquet payload is approximately 48 GB:

from datasets import load_dataset

dataset = load_dataset(
    "jordangong/jupyter-scripts-smollm3",
    split="train",
    streaming=True,
)

Remove streaming=True to download and prepare the complete dataset locally.

Schema

Field Type Description
hexsha string Original Software Heritage blob identifier.
ext string Normalized script extension without a leading dot.
lang string Normalized programming-language name.
max_stars_repo_path string File path from the selected source repository.
max_stars_repo_name string Selected source repository name.
max_stars_repo_licenses string Stringified list of detected source licenses.
avg_line_length float64 Mean script line length.
alphanum_fraction float64 Fraction of script characters that are alphanumeric.
size int64 Script length in Unicode code points.
id string Stable <source-file-index>:<row-index> conversion ID.
content string Jupytext-rendered script content.

Conversion

The converter adapts BigCode's Stack v1 notebook conversion to stream Stack v2 Parquet shards and produce Parquet output directly.

  1. Notebook JSON is parsed with nbformat.
  2. The script format is selected from notebook language metadata. Python kernels are recognized as a fallback.
  3. If metadata is missing or cannot be rendered, code cells are classified by GuessLang. Predictions below 0.5 are rejected.
  4. The notebook is rendered as a script with Jupytext.
  5. Unpaired Unicode surrogates are replaced with U+FFFD before Arrow serialization; valid Unicode is preserved.

Rows that cannot be parsed, classified, or rendered are omitted from train and recorded as JSON Lines under _audit/. The complete worker manifests and checkpoints are retained under _state/ for provenance.

The conversion used:

  • materialized source repository commit: ffd83e8e2dd7c14fcbb7eca12e28b2f8afc71f0e
  • upstream bigcode/the-stack-v2 commit recorded by that source repository: e565caa3a78c2423bd374333a472b049eb090e47
  • 13,425 source Parquet files
  • 32 source Parquet files per output Parquet
  • converter semantics: bigcode-jupytext-script-v2-merged

Validation

Before publication, all 420 Parquet footers were read from the Hub. Every file had the same 11-column schema, every file was non-empty, and the footer row total exactly matched the two completed worker checkpoints: 9,478,641 rows. All 210 audit files were also parsed; their 177,459 valid JSON records exactly matched the checkpoint failure totals.

Limitations and responsible use

  • Conversion can change notebook formatting and does not preserve rich output, widget state, or every notebook metadata field.
  • Language detection can be incorrect, especially for short or polyglot notebooks.
  • This release does not perform deduplication, decontamination, malware scanning, secret removal, or PII filtering.
  • Repository and license metadata is provided for provenance but is not legal advice. Code remains subject to its original license.
  • The data can contain insecure, malicious, offensive, or sensitive material present in public source repositories.

Users must follow the original licenses and the The Stack v2 terms and responsible-use guidance, including Software Heritage's principles for language-model training.

The Stack v2 is updated to honor validated removal requests. Users should check the upstream dataset for the latest usable version and applicable removals before redistributing or training on this derivative.

Acknowledgements

The source corpus was produced by the BigCode and Software Heritage teams. The notebook-to-script strategy and output schema build on BigCode's Stack v1 and StarCoderData preprocessing work.

Downloads last month
1,106