All Projects → NuCOS → angular-bokeh

NuCOS / angular-bokeh

Licence: MIT license
An example angular project on integrating Bokeh with Angular and send data from a python backend

Programming Languages

typescript
32286 projects
python
139335 projects - #7 most used programming language
SCSS
7915 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to angular-bokeh

awesome-devops ru
Roadmap по материалам о DevOps, помогающим его понять, осмыслить и принять
Stars: ✭ 45 (+87.5%)
Mutual labels:  wiki
blog
仿照nswbmw的N-blog项目写的多人博客系统,引入了bootstrap和jquery validation plugin。详见wiki部分。
Stars: ✭ 10 (-58.33%)
Mutual labels:  wiki
contribute-foss
Let's build an exhaustive Wiki page on how to contribute to the Linux and FOSS community, even WITHOUT knowing code!
Stars: ✭ 136 (+466.67%)
Mutual labels:  wiki
NotionAI-MyMind
This repo uses AI and the wonderful Notion to enable you to add anything on the web to your "Mind" and forget about everything else.
Stars: ✭ 181 (+654.17%)
Mutual labels:  wiki
appflowy
AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
Stars: ✭ 24,929 (+103770.83%)
Mutual labels:  wiki
wikiapi
JavaScript MediaWiki API for node.js
Stars: ✭ 28 (+16.67%)
Mutual labels:  wiki
neuron.nvim
Make neovim the best note taking application
Stars: ✭ 340 (+1316.67%)
Mutual labels:  wiki
traceml
Engine for ML/Data tracking, visualization, dashboards, and model UI for Polyaxon.
Stars: ✭ 445 (+1754.17%)
Mutual labels:  bokeh
doc
Teensy PJRC WIKI
Stars: ✭ 48 (+100%)
Mutual labels:  wiki
HiveMind
HiveMind is a project management and ERP application for services organizations. It features project/task management, request tracking, time tracking, expenses, invoices/payments, general ledger, and content management (wiki). HiveMind is based on Moqui Framework, Mantle Business Artifacts, and Simple Screens.
Stars: ✭ 40 (+66.67%)
Mutual labels:  wiki
femiwiki
🌏 문서화된 페미위키 기술 정보 및 이슈 트래킹 정보 제공
Stars: ✭ 18 (-25%)
Mutual labels:  wiki
papers reading sharing.github.io
Sites to share deep learning related papers and their digests
Stars: ✭ 32 (+33.33%)
Mutual labels:  wiki
meza
Setup an enterprise MediaWiki server with simple commands
Stars: ✭ 38 (+58.33%)
Mutual labels:  wiki
hover-binder
Binder repository for the hover package
Stars: ✭ 43 (+79.17%)
Mutual labels:  bokeh
catwiki
CatWiki is a simple wiki that stores its articles as text files
Stars: ✭ 39 (+62.5%)
Mutual labels:  wiki
godpaper
🐵 An AI chess-board-game framework(by many programming languages) implementations.
Stars: ✭ 40 (+66.67%)
Mutual labels:  wiki
digital-garden
당근마켓 공개 지식 저장소
Stars: ✭ 309 (+1187.5%)
Mutual labels:  wiki
content
Synced content from our gitbook site.
Stars: ✭ 37 (+54.17%)
Mutual labels:  wiki
fluence
WYSIWYG wiki powered by Crystal, markdown, and Git
Stars: ✭ 44 (+83.33%)
Mutual labels:  wiki
python-data-viz-workshop
A workshop on data visualization in Python with notebooks and exercises for following along.
Stars: ✭ 136 (+466.67%)
Mutual labels:  bokeh

Angular & Bokeh

A small example on connecting bokeh with Angular and send data from a python backend.

objectives that are solved here:

  • display a chart figure in an app or website,
  • be able to send update events from the python back-end.

A bokeh-chart component might not always be the optimal solution, but we found this is a nice minimal example and a demonstrator:

<bokeh-chart></bokeh-chart>

see in app.component

The interesting part of the problem is not the integration of bokeh as a bokeh-chart component to angular,

see in bokeh-chart.component

but the service, that provides the data for the chart and the functionality to the component, e.g. getChart():

see in bokeh.service

and a possible back-end service written in python addChart() sends the chartItem as a json item over the websocket:

see in pythonToView

the minimal example, even written as a member function, looks very simple (chartProvider.py):

see in chartProvider

Installation

OS X & Linux & Windows:

Install Anaconda and open a conda enabled shell:

conda create -n angular-bokeh python=3.8 simplejson bokeh aiohttp
conda activate angular-bokeh
pip install -r requirements.txt

At time of writing the current bokeh version is 2.3.2. It may change. Be sure the Bokeh-JS version located in index.html fits to the bokeh version in python.

Latest update to Angular 10.

Usage

open shell in root folder of the repository

$ cd client/
$ npm install
$ ng build

change to python folder

$ cd ../python/
$ python app.py

in your browser you should see the app being served to:

http://localhost:9000/

Wiki

Angular & Bokeh Wiki

Meta

Twitter – @eckjoh2[email protected]

https://github.com/NuCOS

Contributing

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Keep your fork up-to-date

In your local working copy of your forked repository, you should add the original GitHub repository to the "remote" branches. ("remotes" are like nicknames for the URLs of repositories - origin is the default one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. This can be done with the following sequence of commands:

  1. Add the remote, call it e.g.: "upstream":
git remote add upstream [email protected]:NuCOS/angular-bokeh.git
  1. Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:
git fetch upstream
  1. Make sure that you're on your master branch:
git checkout master
  1. Rewrite your master branch so that any commits of yours that aren't already in upstream/master are replayed on top of that other branch:
git rebase upstream/master

If you don't want to rewrite the history of your master branch, (for example because other people may have cloned it) then you should replace the last command with git merge upstream/master. However, for making further pull requests that are as clean as possible, it's probably better to rebase.

  1. If you've rebased your branch onto upstream/master you may need to force the push in order to push it to your own forked repository on GitHub. You'd do that with:
git push -f origin master

You only need to use the -f the first time after you've rebased

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].