Skip to content

Instantly share code, notes, and snippets.

@RuslanPeresy
Created March 21, 2021 03:17
Show Gist options
  • Save RuslanPeresy/813d0a645640159fd838b6066e338930 to your computer and use it in GitHub Desktop.
Save RuslanPeresy/813d0a645640159fd838b6066e338930 to your computer and use it in GitHub Desktop.
play-with-jupyter
name: initial-env
channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- numpy
- matplotlib
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "fantastic-criminal",
"metadata": {},
"outputs": [],
"source": [
"# Welcome to the test task"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "rational-memorabilia",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello world!\n"
]
}
],
"source": [
"print('Hello world!')"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "opening-ukraine",
"metadata": {},
"outputs": [],
"source": [
"def count():\n",
" somearray = list(range(10))\n",
" return len(somearray)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "early-vacation",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"10"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"count()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "consistent-modification",
"metadata": {},
"outputs": [],
"source": [
"# the end"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.2"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment