GithubHelp home page GithubHelp logo

mypubnotebooks's Introduction

UNDER CONSTRUCTION

MyPubNotebooks

This is the site of my public notebooks for Julia usage. I was trained in applied mathematics along time go but used that training mainly as software developer not mathematician. The purpose of this site to provide examples of using Julia to preform statistical analysis based on the Jayne's statistical interpretation. Note there will be notebooks on using using Julia with linear algebra because I'm rusty and to do almost anything math related on computer you need to understand how to apply linear algebra. The resource links for putting this site together is at bottom of the page.

Install Juliaup and utilize it

I use Juliaup to mange my different versions Julia. Below is how install it on the Mac:

brew install juliaup
juliaup list
juliaup add 1.9.4
juliaup status

To utilize version 1.9.4 run:

julia +1.9.4 

or set the default version to 1.9.4:

julia default 1.9.4
julia

to update your installed version run:

juliaup update

Install and run Juypterlab.

Setup a project from juila project file under this github project.

cd ./MyLinearAlgerbra/
]
activate .
instantiate
status
update
<delete>

Install IJulia and Juypterlab for the first time.

If Juypterlab has not been installed for you system you will be prompted to install it using miniconda. You will want to do that. Mini Python will installed in a sub directory under ~/.julia/conda Note it will take a while to Jupyterlab.

]
activate .
add IJulia
<delete>
jupyterlab()
install JupyterLab via Conda, y/n? [y]: y

Define Kernel to use your project file.

To create juypterlab kernel for my Linear Algebra notes:

]
activate .
<delete>
using IJulia
IJulia.installkernel("MyLinearAlgerbra", "--project=.")

The kernals on MacOS are stored under /Users//Library/Jupyter/kernels. When you run installkernal command it creates a directy under kernels directory. For example:

├── kernels
│   └── mylinearalgerbra-1.9
│       ├── kernel.json
│       ├── logo-32x32.png
│       ├── logo-64x64.png
│       └── logo-svg.svg

To remove kernel just remove the directory aka mylinearalgerbra-1.9. If you can't find the kernel directory fire up python env with juypter installed and run: /Users//.julia/conda/3/aarch64/bin/jupyter --runtime-dir. Note you can also use the following juypter commands to manage your kernels:

jupyter kernelspec list
jupyter kernelspec remove <kernel-name>

Launch juypterlab in current directory.

Start juypterlab based on the current Tom's Obvious Minimal Language (TOML) project file. If you cd to ./MyLinearAlgerbra you will use the Project.toml located there. Note the first time you run jupyterlab from julia it will prompt you to install it using Conda it will take a while. Below is example of activating my MyLinearAlgerbra project.

cd ./MyLinearAlgerbra
]<enter>
activate .
<delete>

Below is how to start JupyterLab so it points to the notebooks located under ./MyLinearAlgerbra

using IJulia
jupyterlab(dir=pwd(), detached=true)

Select Kernerl and notebook to run.

image

Diff Notebooks using git diff

pip install --upgrade pip
nbdime config-git --enable --global

Doing git diff will give you something like this: image

Resource Links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.