Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fomightez/borked_appmode_plus
https://github.com/fomightez/borked_appmode_plus
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fomightez/borked_appmode_plus
- Owner: fomightez
- Created: 2023-02-28T20:15:14.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T04:05:11.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T14:13:36.212Z (2 months ago)
- Language: Jupyter Notebook
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**NOTE APPMODE PRESENTLY DOESN'T WORK HERE, instead see [appmode_plus here](https://github.com/fomightez/appmode_plus/).** For some reason clicking on the 'appmode' button still produces an error in regards to the hidden files as discussed [here](https://github.com/oschuett/appmode/issues/64). For a while, I hadn't been able to determine what extra in that repo interferes with the fix I instituted that works in both [my fork of the binder-example/appmode repo](https://github.com/fomightez/appmode) and [a simpler appmode example I had from demonstrating a very old fix](https://github.com/fomightez/simple_appmode_binder). Also note that the issue isn't the location of the `jupyter_notebook_config.py`. I note [here](https://github.com/oschuett/appmode/issues/64#issuecomment-1448813687) that you need `jupyter_notebook_config.py` in the root and even point at a specific commit of a related repo that tested it in combination with use of a `binder` directory for the configuration files. ===> **ANSWER IS `vpython` installation causes the fix of appmode to not work. Why that is I don't know & it is weird, but that was the culprit!** Incompatiblilty because of?
------
# Creating webapps with Binder that have Seaborn, VPython (NO!!), and other useful dependencies
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/fomightez/borked_appmode_plus/master?urlpath=%2Fnotebooks%2Findex.ipynb)
This repository demonstrates how to create webapps with Binder. This is similar to how Shiny apps work in R.
Using the `appmode` Jupyter plugin, a notebook's code will be run, and then only the markdown cells and
code outputs will be shown.You can check out the `appmode` repository here: https://github.com/oschuett/appmode
----
**NOTE APPMODE PRESENTLY DOESN'T WORK HERE, instead see [appmode_plus here](https://github.com/fomightez/appmode_plus/).** For some reason clicking on the 'appmode' button still produces an error in regards to the hidden files as discussed [here](https://github.com/oschuett/appmode/issues/64). For a while, I hadn't been able to determine what extra in that repo interferes with the fix I instituted that works in both [my fork of the binder-example/appmode repo](https://github.com/fomightez/appmode) and [a simpler appmode example I had from demonstrating a very old fix](https://github.com/fomightez/simple_appmode_binder). Also note that the issue isn't the location of the `jupyter_notebook_config.py`. I note [here](https://github.com/oschuett/appmode/issues/64#issuecomment-1448813687) that you need `jupyter_notebook_config.py` in the root and even point at a specific commit of a related repo that tested it in combination with use of a `binder` directory for the configuration files. ===> **ANSWER IS `vpython` installation causes the fix of appmode to not work. Why that is I don't know & it is weird, but that was the culprit!** Incompatiblilty because of?
### Post-Fork Differences
- I added seaborn and other useful dependencies to the `environment.yml` file after forking this from [here](https://github.com/binder-examples/appmode).
(To determine which ones I could place in `environment.yml` to have conda handle install, I opened a Binder from appmode Binder-example and then launched terminal then searched, such as `conda search seaborn` to see if available in conda-forge, based on [here](https://conda.io/docs/user-guide/tasks/manage-pkgs.html#searching-for-packages). Nothing returned for those, like `vpython`, that are not available.)
- Updated `launch binder` button to point to my fork. Also, for now I set it to open by default into the Jupyter environment Dashboard in this vanilla fork. This is because I plan to mainly use the Jupyter environment spawned from here, using the awesome MyBinder system, for developing or viewing previously made notebooks that I am not ready to share publically.
To change things to open in appmode, later I can just change to `?urlpath=apps%2Findex.ipynb` (or similar depending on notebook name) at the end of the link. Or if I need it to spawn into the notebook form, use at the end`?urlpath=notebooks%2Findex.ipynb`, as described [here](https://github.com/oschuett/appmode#description).
- moved configuration file to a `binder` directory to see if `jupyter_notebook_config.py` could be in there or if needed to be in root to test with restoring working from mybinder via [current workaround](https://github.com/oschuett/appmode/issues/64#issuecomment-1448813687).
- OUTDATED, see https://github.com/binder-examples/appmode --->: Placed dependencies conda cannot handle in EXECUTABLE `postBuild` file. (Note that because the `postBuild` approach for some reason wasn't working for my fork of qgrid-notebooks (I strongly suspect that issue was because you cannot use the browser interface to edit the postBuild file, which I have since stopped doing), I later found I could actually add the items that conda doesn't handle but pip does to the `environment.yml` using the solution at http://repo2docker.readthedocs.io/en/latest/samples.html#conda-mixed-requirements , see [here](https://github.com/fomightez/qgrid-notebooks/blob/master/environment.yml) for an example where I replace the `pip install` lines in `postBuild` with lines in `environment.yml`.