Browse Source

gin commit from nit-ope-de04

New files: 2
sprenger 2 years ago
parent
commit
bd1fa97d53
2 changed files with 86 additions and 0 deletions
  1. 79 0
      requirements.ipynb
  2. 7 0
      requirements.txt

+ 79 - 0
requirements.ipynb

@@ -0,0 +1,79 @@
+{
+ "cells": [
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This notebook tests that the working Python environment is correctly set up locally with all dependencies required. If nessesary make sure all Python dependencies listed in the the \"requirements.txt\" file at the root of the repository have been installed."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "# the following python dependencies need to be installed.\n",
+    "!cat requirements.txt"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "import nixio"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "with nixio.File.open('setup_file.nix', nixio.FileMode.ReadWrite) as nixfile:\n",
+    "    assert nixfile.is_open()"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "import neo"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "import elephant"
+   ]
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3 (ipykernel)",
+   "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.6"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 4
+}

+ 7 - 0
requirements.txt

@@ -0,0 +1,7 @@
+jupyter
+matplotlib
+nixio
+neo
+elephant
+viziphant
+rise