Code Runner
Run code with @vcode
VORA Chat and Tool Demo
Code Runner — workflow demo
Run code with @vcodeChoose a real request from this guide and preview the flow from input to result.
This demo stays in your browser; it sends, saves, and charges nothing.
Send a request to see the processing flow and output format for this tool.
@vcode Plot y=x²-4x+3 and mark the roots calculated with the quadratic formula
- 1Interpret natural-language request
- 2Write Python automatically
- 3Run on isolated virtual server
- 4Return graph, code, and result
VORA chat input@vcode Plot y=x²-4x+3 and mark the roots calculated with the quadratic formula
- 1Natural-language computation or chart request
- 2AI writes Python and runs it on a virtual server
- 3Graph and executed code returned together
ⓘ You do not need to write Python; this demo sends no code to a live server.
import numpy as np
import matplotlib.pyplot as plt
a, b, c = 1, -4, 3
disc = b**2 - 4*a*c
roots = ((-b-np.sqrt(disc))/(2*a),
(-b+np.sqrt(disc))/(2*a))
x = np.linspace(-1, 5, 300)
plt.plot(x, a*x**2 + b*x + c)
plt.scatter(roots, [0, 0])
plt.show() $ python vora_task.py
Roots x₁=1, x₂=3 · vertex (2, -1)
saved: /output/vora-result.png
exit_code: 0 Python 3.12 · 0.84sLive results vary with the source material, request, and time of use.
What is the Code Runner tool?
A tool that runs Python code with the @vcode trigger and shows you the results.
When you use the @vcode trigger, it executes Python code and shows the results immediately. Useful for calculations, data analysis, algorithm verification, and more.
When can you use it?
The Code Runner tool is especially useful in these situations.
- When you want to quickly verify simple calculations or algorithms
- When you want to try out data processing or analysis code
- When you want to instantly check results while learning code
- When you need to do numeric or statistical calculations quickly
For example, you can naturally ask "@vcode Find the prime numbers from 1 to 50 and show them as a list", "@vcode Calculate the value of a ₩1,000 stock after 10 years with 5% annual growth", or "@vcode Calculate the sum from 1 to 100". The AI will then use this tool to generate the result.
How to use it
Usage is simple. Just enter your request naturally in the input box like this.
@vcode + [Task to execute · content to calculate]
Here are some examples:
- Math/calculation: "@vcode Find the prime numbers from 1 to 50 and show them as a list"
- Compound interest: "@vcode Calculate the value of a ₩1,000 stock after 10 years with 5% annual growth"
- Basic sum: "@vcode Calculate the sum from 1 to 100"
- Data processing: "@vcode Calculate the mean and standard deviation of this list: [85, 92, 78, 90, 88]"
Practical request checklist
For a stronger Code Runner request, state the goal, input, scope, and output format together. Adding one more layer of constraints beyond the basic examples reduces follow-up questions and makes the result easier to use.
- State the calculation or check, input values, as-of time, and execution environment.
- Set the language, libraries, time zone, precision, and allowed error.
- Ask for the answer, workings, code, and test cases in the level of detail you need.
Review, save, and reuse the result
Treat the Code Runner result as a draft or a snapshot taken at query time. Check the following before carrying it into the next task.
- Recalculate with a small example and boundary values.
- Record the time zone and as-of time for date and time results.
- Review external input, file and network access, and performance limits in executed code.