Skip to content

Commit

Permalink
prototype of jupyter binder for statistics-resampling in Octave
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Feb 17, 2024
1 parent 184419e commit cb3204b
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jupyter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Octave on mybinder.org

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/gnu-octave/statistics-resampling/master?filepath=jupyter/index.ipynb)

An example of using Octave on [mybinder.org](https://mybinder.org/).

This shows you how to make Matlab code that works with [Octave](https://www.gnu.org/software/octave/) run on [mybinder.org](https://mybinder.org/).

The [example notebook](index.ipynb) is taken from the [octave_kernel](https://github.com/Calysto/octave_kernel) repository.
2 changes: 2 additions & 0 deletions jupyter/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gnuplot
ghostscript
3 changes: 3 additions & 0 deletions jupyter/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies:
- octave_kernel
- octave
66 changes: 66 additions & 0 deletions jupyter/index.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Jupyter Octave Kernel with statistics-resampling\n",
"============\n",
"\n",
"Interact with Octave and the statistics-resampling package in Notebook. All commands are interpreted by Octave. Since this is a [MetaKernel](https://github.com/Calysto/metakernel), a standard set of magics are available. Help on commands is available using the `%help` magic or using `?` with a command."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"pkg install \"https://github.com/gnu-octave/statistics-resampling/archive/refs/heads/master.zip\"\n",
"pkg load statistics-resampling"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"% Enter your code below\n",
"tic;boot(100,100000);toc;"
]
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Octave",
"language": "octave",
"name": "octave"
},
"language_info": {
"file_extension": ".m",
"help_links": [
{
"text": "GNU Octave",
"url": "https://www.gnu.org/software/octave/support.html"
},
{
"text": "Octave Kernel",
"url": "https://github.com/Calysto/octave_kernel"
},
{
"text": "MetaKernel Magics",
"url": "https://metakernel.readthedocs.io/en/latest/source/README.html"
}
],
"mimetype": "text/x-octave",
"name": "octave",
"version": "8.4.0"
}
},
"nbformat": 4,
"nbformat_minor": 4
}

0 comments on commit cb3204b

Please sign in to comment.