Skip to content

kushnertodd/jupyter-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin-programming

This is a Jupyter notebook to teach introductory Kotlin programming. Kotlin is a Java-based language used for programming Android phones.

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
pip install jupyter

add to path:

C:\Users\kushn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts
C:\ProgramData\anaconda3\Scripts

run:

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
  • 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.

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages