O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Central Iowa Linux Users Group: August 2020 Jupyter Lab

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
HueMore
HueMore
Carregando em…3
×

Confira estes a seguir

1 de 22 Anúncio

Central Iowa Linux Users Group: August 2020 Jupyter Lab

Baixar para ler offline

Setting up Jupyter Lab, virtual env and other Linux fun
Video at: https://youtu.be/3_r0LqzMAD8
Version control at: https://gitlab.com/denner1/cialug-august-2020-jupyter-lab

Setting up Jupyter Lab, virtual env and other Linux fun
Video at: https://youtu.be/3_r0LqzMAD8
Version control at: https://gitlab.com/denner1/cialug-august-2020-jupyter-lab

Anúncio
Anúncio

Mais Conteúdo rRelacionado

Semelhante a Central Iowa Linux Users Group: August 2020 Jupyter Lab (20)

Mais de Andrew Denner (18)

Anúncio

Mais recentes (20)

Central Iowa Linux Users Group: August 2020 Jupyter Lab

  1. 1. Jupyter Lab Andrew Denner August 2020 Central Iowa Linux Users Group Video of talk at: https://youtu.be/3_r0LqzMAD8 Source: https://gitlab.com/denner1/cialug-august-2020-jupyter-lab
  2. 2. Welcome We will get started shortly
  3. 3. Welcome to CIALUG Third Wednesday of the month http://cialug.org Email List IRC/Slack Want to present?
  4. 4. Checkin How are you?
  5. 5. Linux News
  6. 6. Our Presenter • Senior Software Developer • Linux Tinkerer • Twitter: @adenner • Slides will be at: http://denner.co
  7. 7. Jupyter Lab Andrew Denner August 2020 Central Iowa Linux Users Group
  8. 8. A brief history • Spun off from ipython in 2014 by Fernando Pérez • Jupyter core languages • Julia • Python • R • But now rather agnostic (.net anyone?)
  9. 9. Notebooks TNG • Released in 2018 • Same building blocks • Cool new interface!
  10. 10. https://mybinder.org/v2/gh/jupyterlab/jupyterlab-demo/try.jupyter.org?urlpath=lab
  11. 11. I want more!
  12. 12. First Some setup • Follow along: https://gitlab.com/denner1/cialug-august-2020-jupyter-lab • Initial setup on Ubuntu Fossa (20.04) Docker image • docker run -p 8080:8080 ubuntu:20.04 • Or easy button to skip ahead docker run --rm -it –p 8080:8080 registry.gitlab.com/denner1/cialug-august- 2020-jupyter-lab:latest • Please note: this image is not optimized for size or security and is not production ready!
  13. 13. Setup cont. • First setup virtualenv and some prereqs • apt-get install git r-base r-cran-devtools nodejs wget python3-pip build-essential libssl- dev libffi-dev python-dev python3-venv • source venv/bin/activate • Verify which env we are in with ‘which pip’ (also note hint in the prompt)
  14. 14. Why virtualenv • Not really needed for docker • Think of it as python in a bottle • Other options are conda or just yell YOLO (or docker in our case)
  15. 15. Setup cont. • pip install jupyterlab ipywidgets • jupyter lab –ip=0.0.0.0 –port=8080 –allow root • Install R apt-get install r-base r-cran-devtools • In R: • devtools::install_github("IRkernel/IRkernel") • IRkernel::installspec() • GnuPlot • apt install -y gnuplot • pip install gnuplot_kernel • python -m gnuplot_kernel install --user
  16. 16. Useful tips • ! Will run in the shell eg. • !pip install packagename • Tab completion is your friend • help() • quickref • Lots of Kernels out there: https://github.com/jupyter/jup yter/wiki/Jupyter-kernels
  17. 17. Demo
  18. 18. Links • https://plotly.com/python/ipyt hon-notebook-tutorial/ • https://gist.github.com/frfahim /73c0fad6350332cef7a653bc d762f08d • https://jupyter.org/try • https://github.com/jupyter/jup yter/wiki/Jupyter-kernels

×