leandromoreira / digital_video_introduction

A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding). Translations: ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡ฏ๐Ÿ‡ต ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿ‡ง๐Ÿ‡ท ๐Ÿ‡ช๐Ÿ‡ธ
https://github.com/leandromoreira/introduction_video_technology
BSD 3-Clause "New" or "Revised" License
15.28k stars 1.32k forks source link

I suggest specifying tag of docker image `jupyter/scipy-notebook` because `scipy.misc.bytescale` method does not exists. #115

Closed yuji38kwmt closed 3 years ago

yuji38kwmt commented 3 years ago

scipy.misc.bytescale method does not exists in jupyter/scipy-notebook docker image.

https://github.com/leandromoreira/digital_video_introduction/blob/master/uniform_quantization_experience.ipynb

import numpy as np
import matplotlib.pyplot as plt
from scipy import fftpack
from scipy.misc import bytescale
import matplotlib.image as mpimg
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-17733afde104> in <module>
      2 import matplotlib.pyplot as plt
      3 from scipy import fftpack
----> 4 from scipy.misc import bytescale
      5 import matplotlib.image as mpimg
ImportError: cannot import name 'bytescale' from 'scipy.misc' (/opt/conda/lib/python3.8/site-packages/scipy/misc/__init__.py)

I suggest specifying tag of docker image jupyter/scipy-notebook. https://github.com/leandromoreira/digital_video_introduction/blob/master/s/start_jupyter.sh

leandromoreira commented 3 years ago

Thanks @yuji38kwmt you're right , also feel free to send a PR :)

yuji38kwmt commented 3 years ago

@leandromoreira I created PR. https://github.com/leandromoreira/digital_video_introduction/pull/117