Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kushnertodd/kotlin-programming


https://github.com/kushnertodd/kotlin-programming

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# kotlin-programming

This is a Jupyter notebook to teach introductory [Kotlin](http://kotlinlang.org/) programming.
Kotlin is a Java-based language used for programming [Android phones](https://developer.android.com/kotlin).

## Running the Kotlin Jupyter notebook locally
The Kotlin Jupyter notebook can be run locally on a PC using Anaconda.

- Install Anaconda to run Jupyter locally. Download Anaconda and do a standard install for all users.

https://www.anaconda.com/download

- Open the Start Menu
- Select Anaconda3
- Right-click on Anaconda Prompt and select More, Run as Administrator
- Run this command

C:\WINDOWS\system32>conda install kotlin-jupyter-kernel -c jetbrains

- Download the Kotlin Jupyter notebook, from this page

https://github.com/kushnertodd/kotlin-programming

- Select Code and Download Zip
- Expand the zip into a directory.
- Select Launch Anaconda Navigator from the Start menu.
- Select Launch under Jupyter Notebook.
- Open the file `notebooks/Introduction-to-Kotlin.ipynb` from the directory where you installed the notebook.

## Running the Kotlin Jupyter notebook from the web
This runs the notebook from the web.

- [Install Jupyter notebook on Google Cloud](./doc/INSTALLATION.md)
- Open the Kotlin Jupyter notebook web page (open with `ctrl-click`).
- Open `Introduction-to-Kotlin.ipynb` from the left side of the screen.
- Select `Using Jupyter` for instructions on using the Jupyter notebook.
- Running the notebook
- Run the code in a code cell by selecting the cell and clicking the run icon ⯈ on the toolbar, or selecting the `Run/Run Selected Cells` menu item (try twice if it does not run the first time, be patient the first time on a page).
- The output of the code will appear below the cell.
- If prompted to `Save your work` on closing a page, select `Discard`.

## Setting up a Jupyter server on the web
See these instructions for [setting up a server on Google Cloud](https://towardsdatascience.com/running-jupyter-notebook-in-google-cloud-platform-in-15-min-61e16da34d52).
- Clone the Github repository `kushnertodd/kotlin-programming`
- Start the server from that directory with the script `bin/run_jupyter.sh`

## Resources for more advanced Kotlin programming

- Kotlin in Action by Roman Elizarov, Svetlana Isakova, Sebastian Aigner

- Head First Kotlin: A Brain-Friendly Guide by Dawn Griffiths, David Griffiths

- Kotlin Programming: The Big Nerd Ranch Guide by David Greenhalgh, Josh Skeen, Andrew Bailey

- Atomic Kotlin by Bruce Eckel, Svetlana Isakova