Run Python Online
Run Python scripts, Jupyter notebooks, or even a graphical application in a full, remote Python environment.

CoCalc covers all the bases

Find more details in the list of installed Python libraries.

Zero setup

Start free / Upgrade later

Collaborative Workspace

Synchronized Jupyter Notebooks

CoCalc's strength is online code collaboration. This is a common theme for editing plain Python files, Sage Worksheets and Jupyter Notebooks.

This enables you to work more effectively as a team to solve the challenges of data science, machine learning and statistics. Every collaborator is always looking at the most recent state of files, experiences and inspects the same problems at the same time, and you can get help via side chat by "@name" mention a collaborator.

Python in Jupyter Notebooks

CoCalc offers a complete rewrite of the classical Jupyter notebook interface. It is tightly integrated into CoCalc and adds real-time collaboration, time-travel history and more.
This rewrite does not change the underlying Jupyter notebook file format. Therefore, you can download your *.ipynb file at any time and continue working in another environment.
There are several Python environments available. Check out the list of installed Python modules for more details.
Despite that, there is also support for running the "Classical Jupyter notebook".

LaTeX support for PythonTeX/SageTeX

The fully integrated CoCalc latex editor covers all your basic needs for working with .tex files containing PythonTeX or SageTeX code. The document is synchronized with your collaborators in real-time and everyone sees the very same compiled PDF.
In particular, this LaTeX editor
  • Manages the entire compilation pipeline for you: it automatically calls pyhontex3 or sage to pre-process the code,
  • Supports forward and inverse search to help you navigating in your document,
  • Captures and shows you where LaTeX or Python errors happen,
  • and via TimeTravel you can go back in time to see your latest edits in order to easily recover from a recent mistake.
Combined, this means you can do your entire workflow online on CoCalc:
  1. Upload or fetch your datasets,
  2. Use Jupyter Notebooks to explore the data, process it, and calculate your results,
  3. Discuss and collaborate with your research team,
  4. Write your research paper in a LaTeX document,
  5. Publish the datasets, your research code, and the PDF of your paper online, all hosted on CoCalc.

Code formatting

CoCalc is able to format your Python code.
By simply clicking one button, your python code is formatted in a clean and consistent way.
This reduces cognitive load reading source code, brings everyone in the team on the same page, and reduces misunderstandings.
Python code formatting works with pure .py files and Jupyter Notebooks running a Python kernel.

Command-line support

All your existing Python scripts run on CoCalc. Either open a Terminal in a frame of the code editor, or click the "Shell" button to find yourself in a Python environment.
Terminals gives you access to Git and many more utilities.
Regarding collaboration, terminals can be used by multiple users at once. This means you can work with your coworkers in the same session at the same time. Everyone sees the same output, and via side chat next to the terminal, the whole team can coordinate what you're doing.
Beyond that, you can simultaneously work with several terminal sessions. This gives you the ability to run your code concurrently.
For long-running programs, you can even close your browser and check upon the result later.

Chatroom for files

Collaboration is a first class citizen on CoCalc. A side-chat for each file gives you the ability to discuss the content with your colleagues or students.
Additionally, little avatars give you presence information about who is currently also working on that file.
Collaborators who are not online will be notified about new messages the next time they sign in.
Chat supports markdown formatting and LaTeX formulas.


CoCalc helps you share your work with the world. It offers hosting of shared documents, which includes Jupyter notebooks, PDF files, image files, code and associated data files.
Under the hood, CoCalc uses a novel renderer which generates a static HTML representation on the server side and even includes pre-rendered LaTeX formulas. This approach does not suffer from the same shortcomings as other solutions based on nbconvert.
Link: Share Server.


Every couple of minutes, all files in your project are saved in consistent read-only snapshots.
This means you can always recover older versions of your files in case they got corrupted or accidentally deleted.

Start free / Upgrade later