Skip to content

Commit

Permalink
Merge pull request #67 from 0Hughman0/master
Browse files Browse the repository at this point in the history
Catching up with main
  • Loading branch information
0Hughman0 committed Aug 29, 2023
2 parents 030c4aa + 8affe4e commit 23e6915
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buid-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 cassini --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 cassini --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check formatting with Black
run: |
poetry run black --check cassini
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Cassini

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/0Hughman0/Cassini/HEAD)

A virtual lab-book, using Jupyter Lab and Python.

![Screenshot](doc_src/_static/JLGui.png)



### Installation

Head to [Quickstart](https://0hughman0.github.io/Cassini/latest/quickstart.html) to get going.
Expand Down
8 changes: 8 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: cassini
dependencies:
- python=3.8
- pip
- matplotlib
- pip:
- cassini

5 changes: 5 additions & 0 deletions binder/jupyter_jupyterlab_server_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Configuration file for jupyterlab_server.

c = get_config() #noqa

c.ContentsManager.allow_hidden=True
7 changes: 7 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cd binder

mkdir ~/.jupyter
mv jupyter_jupyterlab_server_config.py ~/.jupyter/jupyter_lab_config.py

python -c "from project import project; project.setup_files()"
python -c "from project import project; project.setup_files()"
8 changes: 8 additions & 0 deletions binder/project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from cassini import Project, DEFAULT_TIERS
from cassini.jlgui import extend_project

project = Project(DEFAULT_TIERS, __file__)
extend_project(project)

if __name__ == '__main__':
project.launch()
7 changes: 7 additions & 0 deletions binder/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd binder
export CASSINI_PROJECT='project.py:project'
export PYTHONPATH=$PWD

exec "$@"
2 changes: 0 additions & 2 deletions postBuild

This file was deleted.

3 changes: 0 additions & 3 deletions start

This file was deleted.

0 comments on commit 23e6915

Please sign in to comment.