Jupyter notebook(4)
-
[Kubeflow Notebooks] Troubleshooting
Kubeflow 노트북의 공통적인 문제에 대한 해결 ISSUE: notebook not starting SOLUTION: check events of Notebook 아래 명령어를 실행하고 events 섹션에서 에러가 없는지 확인하세요. $ kubectl describe notebooks "${MY_NOTEBOOK_NAME}" --namespace "${MY_PROFILE_NAMESPACE}" SOLUTION: check events of Pod 아래 명령어를 실행하고 events 섹션에서 에러가 없는지 확인하세요. $ kubectl describe pod "${MY_NOTEBOOK_NAME}-0" --namespace "${MY_PROFILE_NAMESPACE}" SOLUTION: check YAML ..
2022.12.21 -
[Kubeflow Notebooks] Submit Kubernetes Resources
노트북에서의 쿠버네티스 리소스 제출 Notebook Pod ServiceAccount Kubeflow는 default-editor 라는 쿠버네티스 ServiceAccount를 노트북 Pods에 할당합니다. 해당 쿠버네티스 default-editor ServiceAccount는 kubeflow-edit ClusterRole에 바운드 되어 있습니다.이 ClusterRole은 많은 쿠버네티스 자원에 권한이 있는 네임스페이스 스코프를 가지고 있습니다. 당신은 ClusterRole/kubeflow-edit 을 위한 RBAC의 모든 리스트를 아래와 같이 조회할 수 있습니다. $ kubectl describe clusterrole kubeflow-edit Kubectl in Notebook Pod 모든 노트북 pod..
2022.12.20 -
[Kubeflow Notebooks] Jupyter TensorFlow Examples
Kubeflow 노트북에서의 Jupyter와 Tensorflow 사용 예제 Mnist Example (tensorflow/tensorflow - mnist_softmax.py 에서 각색) Jupyter와 Tensorflow가 설치된 container image를 선택해서 노트북 서버를 생성하세요. Python 3 노트북 생성을 위해 Jupyter 인터페이스를 사용하세요. 아래 코드를 복사, 붙여넣으세요. from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) import tensorflow as tf x = tf.placeholder(tf.fl..
2022.12.19 -
miniconda로 Jupyter Notebook 설치 및 실행하기
miniconda는 설치되어 있다고 가정했다. 설치는 어렵지 않으니 찾아보면 금방 할 수 있다. (base) $ conda install jupyter notebook 가상환경에 진입 후, conda를 통해 jupyter, notebook 을 설치한다. Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\ProgramData\miniforge3 added / updated specs: - jupyter - notebook The following packages will be downloaded: package | build --..
2022.11.21