Skip to content

lucia15/k8-data-visualization

 
 

Repository files navigation

k8-data-visualization

If you are working on this project via Upwork, see also our Upwork Rules of Engagement

If you are newcomer, then please check Glasswall newcomers checklist 

Project Brief

Objective: Consume, process, normalize and visualize GitHub Issues data

Running Jupyter Notebooks

Add support for running Jupyter Notebooks docker image locally (mounting the current source code as the root of the notebooks folder)

Windows Environments

  • Navigate to "k8-data-visualization\docker\local-jupyter" directory. Fire the following command
docker build -t local-jupyter .

Local docker image will be built


Access

  • Navigate back to "k8-data-visualization" directory. Fire the following command
docker run -it --rm -p 8888:8888 -v ${PWD}:/home/jovyan/work local-jupyter

Local docker image will be started


Access

  • Access notebooks with the URL printed in the started logs.


Access

Unix and MAC Environments

  • Fire the following command
sh run-local-jupyter.sh

Local docker image will be built and started


Access

  • Access notebooks with the URL printed in the started logs.


Access

Pull Request Guideline

  • List the steps on how to execute the work you have done in the README.md(inside your folder)
  • Create a screenshot of the output(if available) and have it posted in the issue comments
  • Create a demo video to show the work you have done. Post the link of the video in the raw-videos and p-data-visulisation channel.
  • Create a pull request
  • Set the issue "pipeline" to "peer review"
  • Set the issue "label" to "ready-for-review"
  • Set the issue "reviews" to "dinis-cruz-gw" or "DinisCruz"
  • In our slack channel inform Dinis and me with the Pull Request link

Coding Guideline

These are the coding guidelines we tend to follow for Python projects at Glasswall

Code Formatting

  • Align formatting of code using common sense

  • Parameter formatting (Readable and easy to find issues if any)


Example Formatting

  • Code lengths should be based on code readability (for example in the case below)
	CONST PARTNERED = 'We have partenered with multiple clients to look out '\

                       'for opportunities to get more clientelle'

It is better to put all of that in one line

	CONST PARTNERED = 'We have partenered with multiple clients to look out for opportunities to get more clientelle'

Naming Conventions

  • Keep separate classes in separate files

  • Class names to follow upper camel case (class names should have underscores between words) e.g

	class Http_Api_Issues:
  • File names should match the class name. E.g. Above file to be saved as “Http_Api_Issues.py”

  • Function names to follow lower camel case e.g

e.g.

def get_all_issues():
  • We don’t follow any standards e.g. PEP. Code readability and easy to understand and debug are must.

E.g. Compare a more readable code

CONST_STACKOVERFLOW            = 'stackoverflow'
CONST_GLASSWALL                = 'glasswall'
CONST_GW_PROXY                 = 'gw-proxy'

With a lesser readable one

CONST_STACKOVERFLOW='stackoverflow'
CONST_GLASSWALL='glasswall'
CONST_GW_PROXY='gw-proxy'
  • Put CONST (when used) on separate python, json or yaml files

Constants

General

  • Commit often and with clear commit messages

  • You can use whatever font size or face you want, as long as that setting is not pushed to the main repo

  • Align formatting of code using common sense

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 94.3%
  • Python 2.6%
  • CSS 2.1%
  • Other 1.0%