Hello Jupyter
Overview
This is my very first Jupyter notebook post for fastpages. I hope this page is built to valid markdown post. To verify build validity, I will test the following topics in this article:
- Import packages
- Third-party packages: ex.
numpy - My own packages: ex.
hello_world.py
- Third-party packages: ex.
- Play wavs
- Display image
Import Packages
In this chapter, I'll test importing packages. Basically, fastpages provides a build-in Docker image to launch Jupyter Notebook. However, for package manage aspect, it makes cumbersome to expand packages - defining packages in Dockerfile , building it again, and so on.
So, I recommend you not to use the docker image (actually, I removed execution from the docker-compose, see d5930ef756d849dee01cb9e6037972b4fadadab3) Instead of docker image, I recommend to use local Jupyter Notebook and pyenv pairs or Google Colab
import numpy as np
np.arange(100)
!cat hello_world.py
import hello_world
print('-' * 20)
hello_world.say('JSeo')
import IPython.display as ipd
!wget https://file-examples-com.github.io/uploads/2017/11/file_example_WAV_1MG.wav
ipd.Audio('file_example_WAV_1MG.wav')
!wget https://cdn.pixabay.com/photo/2020/12/03/05/23/lion-5799523_960_720.jpg
ipd.Image('lion-5799523_960_720.jpg')