Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fomightez/appmode_plus
https://github.com/fomightez/appmode_plus
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fomightez/appmode_plus
- Owner: fomightez
- License: bsd-3-clause
- Created: 2023-03-01T02:19:08.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T04:02:10.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T14:13:36.217Z (2 months ago)
- Language: Jupyter Notebook
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Creating webapps with Binder that have Seaborn and other useful dependencies
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/fomightez/appmode_plus/master?urlpath=apps%2Findex.ipynb)
This repository demonstrates how to create interactive webapps from a Jupyter Notebook.
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
----
### 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.)
UPDATE: Addition of `vpython`, but not `vpnotebook` to the pip installation in `environment.yml` ruins the fix of appmode 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) by adding a setting in `jupyter_notebook_config.py` to allow hidden_files to be saved. Verified by gradually transitioning this from similar to [my fork of the binder-examples/appmode repo](https://github.com/fomightez/appmode) to my version with Seaborn, VPython (hopefuly) including to try to see why [borked_appmode_plus](https://github.com/fomightez/borked_appmode_plus) fails.
- 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.
UPDATED: 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), and to help with [answering 'How can I use jupyter notebook with binder and appmode?'](https://stackoverflow.com/q/75595504/8508004). ==> Turns out `jupyter_notebook_config.py` needs to be in the root.
- 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`.===> I have now moved the pip installs to `environment.yml`