Skip to content

Commit

Permalink
Presentation for PD-FRI 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcinv committed Jun 10, 2016
1 parent 333d189 commit 92554ef
Showing 1 changed file with 141 additions and 0 deletions.
141 changes: 141 additions & 0 deletions Predstavitev_PD_2016.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Generiranje vprašanj za kvize v Moodlu\n",
"* Python ali Octave\n",
"* preprosta knjižnica + vzorci\n",
"* Izvorna koda na [Github:mrcinv/moodle-questions](https://github.com/mrcinv/moodle-questions)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Kaj obsega knjižnica\n",
"* Pripomočke za vprašanja tipa *Close (vgnezdeni odgovori)*"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "-"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'{1:NUMERICAL:=3.140000:0.100000#Pravilno~3.140000:1.000000#Premalo pravilnih decimalk}'"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from python.moodle import *\n",
"num_q(3.14,0.1)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"## Kaj obsega knjižnica\n",
"* Zapis v Moodle XML formatu"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "-"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" \u001b[0mmoodle_xml\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mquestions\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mtemplate_fun\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcategory\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m''\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0miostream\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;33m<\u001b[0m\u001b[0mipykernel\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0miostream\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mOutStream\u001b[0m \u001b[0mobject\u001b[0m \u001b[0mat\u001b[0m \u001b[1;36m0x7fa936537c18\u001b[0m\u001b[1;33m>\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
" "
]
}
],
"source": [
"%pdef moodle_xml"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Vzorci nalog\n",
"* [slike](python/example_images.ipynb)\n",
"* [koda](python/example_code.ipynb)\n",
"* [files](python/example_files.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Zaključek\n",
"* Use it, fork it, send pull-requests!\n",
"* Hvala"
]
}
],
"metadata": {
"celltoolbar": "Slideshow",
"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.5.1+"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit 92554ef

Please sign in to comment.