Jupyter notebooks for your team.

Try free
← Blog

Kaggle Notebook Internet Access: Turn It On, Fix Phone Verification, and pip install Offline (2026)

How to switch on internet in a Kaggle notebook, why it needs a verified phone, why code competitions demand it off, and how to install packages without it: a wheel folder built for Kaggle's Python 3.13 with pip download, installed with --no-index, tested with real output. Plus fixes for "Draft session starting".

Fastero Dev TeamFastero Dev Team2026-12-02

Kaggle's help pages load only in a browser, so we worked from what can be read and checked: Kaggle's command-line docs and notebook image on GitHub, competition rules copied into 2026 guides, course instructions, bug reports with real error output, and pip's own documentation. Then we built an offline wheel folder on a Windows laptop with pip download, checked it against Kaggle's platform, and installed from it with --no-index, including the two ways that install fails.

The short answer: open the notebook's Settings menu and click Turn on internet (older layouts show an Internet switch). The session restarts with access. The option needs a phone-verified account; until then, pip install retries and fails with "Temporary failure in name resolution". Code competitions require internet off for the scored run, so packages have to arrive as files: download wheels for Kaggle's Linux and Python 3.13 with pip download --platform, upload them as a private dataset, attach it, and run pip install --no-index --find-links on its folder. A notebook stuck on "Draft session starting" is usually waiting for a machine, or needs a fresh session. Checked 2 December 2026.

Fastero

Jupyter notebooks for your team, with nothing to install.

Start a notebook or bring your .ipynb files. SQL cells query your databases with no password in the code, and a notebook runs now or on a schedule. Colleagues open it with their own login; viewers are free.

Try free →

How to enable internet in a Kaggle notebook

  1. Verify your phone number in your Kaggle account settings, once. A university course lab tells new users they'll need to "Verify your phone number to get Internet and GPU access".
  2. Open Settings in the notebook editor and switch internet on. A guide updated on 28 November says to "click Turn on internet if you see it. If it says Turn off internet, internet is already on." Older guides describe the same thing as Settings, Internet, "Internet connected".
  3. Wait for the restart. "Your Kernels session restarts and the newly started session is enabled to access the Internet", in the words of one tutorial, so variables from before are gone. Run your cells again.
  4. After a pip install, restart the kernel before importing a package that was already loaded in an older version.

One March 2026 guide warns that "Kaggle defaults to internet OFF" and adds that "turning it on costs nothing extra". To check from a cell, this tries to open a connection to PyPI:

import socket
 
def internet(host="pypi.org", port=443, timeout=5):
    try:
        socket.create_connection((host, port), timeout=timeout).close()
        return "Internet: on"
    except OSError as e:
        return f"Internet: off or blocked ({e})"
 
print(internet())
print(internet("pypi.invalid"))   # a name that never resolves, to show the 'off' answer

We ran it on Windows 11 with Python 3.14.3 on 2 December:

Internet: on
Internet: off or blocked ([Errno 11001] getaddrinfo failed)

On Kaggle's Linux the "off" answer ends in Temporary failure in name resolution instead, the same error pip prints.

Notebooks pushed from the command line follow kernel-metadata.json, not the editor. Kaggle's CLI docs say the enable_internet field defaults to false when you leave it out, so a pushed notebook that installs packages needs "enable_internet": "true". (Older guides may say the opposite: the CLI's 2020 changelog reads "Kernels have internet enabled by default".) Our Kaggle API guide covers kaggle kernels push.

Kaggle internet option missing: phone verification

If there's no internet switch, or it does nothing, the account usually isn't phone-verified. The same course lab says to look "At the bottom of the notebook options" for a message that reads like "Want more power? Get phone verified", and follow it. GPUs need the same verification, so if the accelerator list is also locked, that confirms it.

Verification isn't offered everywhere. A user on GitHub wrote in May 2024 that "my region is not served for verification in Kaggle, so I cannot enable the Internet function". If that's you, the preinstalled packages still work, and the offline method below never needs the switch: the files arrive as an attached dataset.

If you are verified and internet worked yesterday, the problem may be on Kaggle's side: its product-feedback forum has threads such as "Notebook internet access stopped working" from users whose switch was already on. Restart the session, then check the forum before rebuilding anything.

Decision table for internet in a Kaggle notebook: when exploring or training with a verified phone, turn internet on in Settings and the session restarts; with no phone verification the switch is unavailable and pip fails with Temporary failure in name resolution; for a code competition's scored run internet must be off, so packages come from an attached dataset of wheels or the Dependency Manager; notebooks pushed with kaggle kernels push have internet off unless enable_internet is true

When internet is on, off or not allowed in a Kaggle notebook, and what you see when it's set wrong. Checked 2 December 2026.

Why Kaggle competitions switch internet off

In a code competition you don't upload answers. Kaggle "re-runs your code on test data you never see and scores whatever it produces", as one 2026 competition guide explains, and the rules list "Internet access disabled." among the conditions for that run. A guide to pushing notebooks from GitHub is blunt about the setting: "Internet ON prevents the notebook from being eligible for submission in code competitions."

Kaggle doesn't explain why on any page we could load. The effect is that every team works with the same inputs: no calling a hosted model at scoring time, no sending the hidden test data anywhere, and nothing downloaded that another team couldn't attach too. Each competition's Code Requirements section says what it allows, including run time and whether external data and pre-trained models are permitted.

So the habit is: develop with internet on if you like, then switch it off, attach everything the notebook needs as inputs, and make sure it still runs from top to bottom before you submit.

How to pip install in a Kaggle notebook without internet

The standard method has three parts: get the package's wheel files and all its dependencies, upload them as a Kaggle dataset, and point pip at that folder with the package index turned off. pip's docs describe exactly this use: the folder pip download fills "can later be passed as the value to pip install --find-links to facilitate offline or locked down package installation."

Step 1: download wheels that match Kaggle

Compiled packages ship a different wheel for each operating system and Python version, so a folder built on a Mac or Windows laptop won't install on Kaggle. Kaggle's notebook image recipe on GitHub, as of November 2026, builds on Python 3.13 (it installs into /usr/local/lib/python3.13); confirm with !python --version in your notebook.

The simplest route is to run pip download in a Kaggle notebook with internet on, then click Save Version; the saved output can be attached to other notebooks as an input:

!pip download pydantic -d /kaggle/working/wheels

To build the folder on your own computer instead, tell pip the target platform:

python -m pip download pydantic -d wheels-kaggle \
  --only-binary=:all: --platform manylinux2014_x86_64 \
  --python-version 3.13 --implementation cp --abi cp313

pip insists on one condition: "--only-binary=:all: or --no-deps is required when using any of these options". We ran this in Git Bash on Windows 11 with pip 25.3 on 2 December (cache and progress lines trimmed):

Collecting pydantic
Collecting annotated-types>=0.6.0 (from pydantic)
Collecting pydantic-core==2.50.5 (from pydantic)
  Downloading pydantic_core-2.50.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (6.6 kB)
Collecting typing-extensions>=4.16.0 (from pydantic)
Collecting typing-inspection>=0.4.4 (from pydantic)
[download lines trimmed]
Successfully downloaded pydantic pydantic-core annotated-types typing-extensions typing-inspection

Five wheels, 2.8 MB. Four are pure Python (py3-none-any) and install anywhere; pydantic_core is compiled, and the same command without the platform flags fetched cp314-cp314-win_amd64 instead, which Kaggle can't use. For many packages, put them in a requirements.txt and use -r requirements.txt.

Step 2: check the folder before you upload it

A dry run against Kaggle's platform proves the folder holds everything, without installing anything:

python -m pip install pydantic --dry-run --target check --no-index \
  --find-links wheels-kaggle --only-binary=:all: --platform manylinux2014_x86_64 \
  --python-version 3.13 --implementation cp --abi cp313
Looking in links: wheels-kaggle
[five "Processing" lines trimmed]
Would install annotated-types-0.8.0 pydantic-2.14.4 pydantic_core-2.50.5 typing-inspection-0.4.5 typing_extensions-4.16.0

Step 3: upload it as a dataset

On kaggle.com, create a dataset and drop the wheel files in, or use the CLI:

kaggle datasets init -p wheels-kaggle     # writes dataset-metadata.json: set title and id
kaggle datasets create -p wheels-kaggle

The CLI docs say of the --public flag: "Make the dataset public (default is private)." We didn't run these two commands, as they need a signed-in account.

Step 4: attach it and install with --no-index

Add the dataset to the notebook as an input. Where it lands depends on the notebook: 2026 guides show datasets under /kaggle/input/datasets/<owner>/<name>/ and competition files under /kaggle/input/competitions/<name>/, while older ones use /kaggle/input/<name>/. Rather than guess, find the wheels:

import glob, os
wheel_dirs = sorted({os.path.dirname(p) for p in glob.glob("/kaggle/input/**/*.whl", recursive=True)})
print(wheel_dirs)

Then install from that folder with the index off:

%pip install --no-index --find-links {wheel_dirs[0]} pydantic

Here is the same install in a fresh virtual environment on our laptop, from a folder built for Windows (paths shortened):

$ python -m pip install --no-index --find-links wheels pydantic
Looking in links: wheels
Processing ...\wheels\pydantic-2.14.4-py3-none-any.whl
[four more "Processing" lines trimmed]
Installing collected packages: typing-extensions, annotated-types, typing-inspection, pydantic-core, pydantic
 
Successfully installed annotated-types-0.8.0 pydantic-2.14.4 pydantic-core-2.50.5 typing-extensions-4.16.0 typing-inspection-0.4.5
$ python -c "import pydantic; print(pydantic.VERSION)"
2.14.4

And the two ways it fails. A package that isn't in the folder:

$ python -m pip install --no-index --find-links wheels tabulate
Looking in links: wheels
ERROR: Could not find a version that satisfies the requirement tabulate (from versions: none)
ERROR: No matching distribution found for tabulate

And a folder built for another platform, here the Linux folder installed on Windows, which is the mirror image of uploading Windows wheels to Kaggle:

$ python -m pip install --no-index --find-links wheels-kaggle pydantic
Looking in links: wheels-kaggle
[two "Processing" lines trimmed]
INFO: pip is looking at multiple versions of pydantic to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement pydantic-core==2.50.5 (from pydantic) (from versions: none)
ERROR: No matching distribution found for pydantic-core==2.50.5

The pure-Python wheels were accepted; the compiled one was skipped as incompatible, and pip named the missing dependency, not the package you asked for.

Models and Hugging Face files

Attach the model as a Kaggle input too, then load it by its folder path. A March 2026 guide hit Temporary failure in name resolution after attaching a model and still passing its Hugging Face name, which "sends a request to the HuggingFace server instead of using the local copy". Setting HF_HUB_OFFLINE=1 before importing the libraries makes the failure explicit: Hugging Face's docs say "If set, no HTTP calls will be made to the Hugging Face Hub."

Kaggle's Dependency Manager

Kaggle also has a built-in route. It announced a Package Manager as "a new feature that our competition community will enjoy", and a 2026 competition guide says to "Install extra Python packages through Kaggle's Dependency Manager, which lets internet-disabled notebooks use them when submitted." Kaggle's instructions for it render only in a browser, so we can't vouch for the steps; the wheel dataset works in every competition and pins exact versions.

Jupyter notebooks for your team.

Start free →

Kaggle notebook stuck on "Draft session starting"

The draft session is the interactive machine behind the editor. When it stays on Draft session starting, these are the fixes users and Kaggle staff report in Kaggle's forums, roughly from most to least common:

  1. Give it a few minutes after a change. Switching internet or the accelerator restarts the session. At busy times GPU and TPU sessions queue: a TPU guide on 28 November saw a queue position of 697 and the message "Your notebook is waiting for an available machine. You can wait or save your work and try later."
  2. Switch the accelerator off and back on. Users report that changing it to any other option and back unsticks the session, and a Kaggle staff member suggested turning the GPU off and on to reset it.
  3. Check the inputs. A large dataset shows Draft session adding data for a long time, and in one thread the cause was two attached datasets with the same path. Remove the duplicate.
  4. Reload, keep the tab in front, or try another browser. Some users found the problem was their browser; one Windows user fixed it by turning off automatic proxy detection.
  5. Start a fresh session, from the session controls or by opening the notebook again. One competition thread found that ending the stalled session worked where refreshing the page didn't.
  6. Run it as a saved version. One user found Save Version ran normally while the draft stayed stuck. That won't help you debug, but it gets a run done; see Save & Run All in our Kaggle Notebooks guide.

If none of these work, it's on Kaggle's side, and it has lasted: one report reads "Been like this for over 24 hours now." Post in Kaggle's product-feedback forum with the notebook's link.

Kaggle notebook no internet connection: errors and fixes

What you see What it means Fix
Temporary failure in name resolution, five times, then No matching distribution found The session has no internet Turn it on, or install from attached wheels
No matching distribution found with --no-index The package isn't in your wheel folder Add the wheel and its dependencies
The same, but naming a dependency such as pydantic-core==2.50.5 That dependency's wheel is for another OS or Python Download with --platform and --python-version 3.13
OSError: Can't load the configuration, with name resolution in it A Hugging Face name, not a local path Load the attached model by its folder; set HF_HUB_OFFLINE=1
No internet switch, or Get phone verified The account isn't phone-verified Verify the phone in account settings
Notebook not eligible to submit Internet is on in a code competition Switch it off; attach inputs instead

The first one is real Kaggle output from an Ultralytics bug report; the line our own laptop printed for an unreachable index reads [Errno 11001] getaddrinfo failed, Windows' wording for the same problem. Either way, pip's final line is the same No matching distribution found you get when a wheel is missing, so read the lines above it.

Where Fastero fits: when the notebook moves to your team's data

Kaggle is the place for competitions and public datasets. When a notebook's job becomes reading your company's database every week, Fastero is an AI and data platform where people and AI agents work together on a team's data, and its notebooks are set up for that:

  • Packages for data work come installed: Python 3.11 with pandas, SQLAlchemy, seaborn, psycopg2 and the BigQuery client.
  • SQL cells run on a saved connection (Postgres, MySQL, SQL Server, Redshift, Oracle or BigQuery) with its stored credentials, and the rows land in Python as a pandas DataFrame named after the cell. Secrets reach cells as environment variables, so no key sits in the notebook.
  • Schedules: run a notebook now or on a cron schedule, on the server with no browser open. Colleagues sign in to read it, and viewers are free.
  • Machines: 1 CPU and 2 GB as standard. On Pro a notebook can move to a bigger machine, up to 8 CPUs and 32 GB ($0.40 an hour for 16 GB, $0.80 for 32 GB), charged by the second from money added to your balance. Keep training on Kaggle.

A Jupyter notebook in Fastero with View as App and Promote to App above it and the project's notebooks, queries and files in the explorer

A notebook in a Fastero project, beside the project's queries and files. Sample data.

The Free plan has no end date and needs no card; details are on the pricing page. For other limits on Kaggle, see our guides to Kaggle's RAM, Kaggle GPUs and Kaggle alternatives.

FAQ

How do I enable internet in a Kaggle notebook?

Open the notebook's Settings menu and choose Turn on internet; the session restarts with access. The option appears only once your phone number is verified. For a notebook pushed with the CLI, set "enable_internet": "true" in kernel-metadata.json.

Why can't I turn on internet in Kaggle?

Almost always because the account isn't phone-verified; the notebook options show a Get phone verified link instead. Verification isn't available in every region. If you're verified and it still fails, restart the session and check Kaggle's product-feedback forum.

Can you use the internet in a Kaggle competition?

You can while developing, but code competitions require internet off for the notebook you submit, and a notebook with internet on isn't eligible. Attach packages as a wheel dataset or through the Dependency Manager, and models as inputs. Each competition's Code Requirements section has the details.

How do I pip install in Kaggle without internet?

Download the wheels for Kaggle's Linux and Python 3.13 (pip download with --platform manylinux2014_x86_64, --python-version 3.13 and --only-binary=:all:), upload them as a dataset, attach it, and run pip install --no-index --find-links on its folder. Check the folder first with pip install --dry-run and the same platform flags.

Why is my Kaggle notebook stuck on "Draft session starting"?

Usually it's waiting for a machine, especially a GPU or TPU at busy times, or the session needs a fresh start. Switch the accelerator off and on, remove duplicate inputs, reload or try another browser, or start a new session. If it lasts for hours, it's on Kaggle's side.

Does internet access cost anything on Kaggle?

No. Turning internet on is free, and one 2026 guide notes it "costs nothing extra". What Kaggle meters is GPU and TPU time, covered in our Kaggle GPU guide.

Sources

Read on 2 December 2026. Kaggle's help pages and forum threads render their text only with JavaScript; for the forum we read each thread's title and opening lines, and the "Draft session starting" remedies are paraphrased from those threads as a web search returned them.


Try Fastero free: run the notebook that comes after the competition on your team's database, with the data libraries installed and a schedule. No credit card required.

Start a notebook next to your team's data.

Python 3.11 with pandas, SQLAlchemy and seaborn, SQL cells on your databases, and scheduled runs on the Free plan. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.