watson 노트북에서 파일 처리
준비
watson studio에서 Notebook을 선택하고 시작합니다.
파일 업로드
오른쪽 상단에 표시된 파일 업로드 아이콘을 클릭하여 파일을 업로드합니다.

ICOS(Ibm Cloud Object Storage)에 파일이 저장되어 있으므로, 한 번 호출하는 처리를 작성할 필요가 있다.
업로드된 파일 아래에 있는 insert to code를 클릭하고 insert Credentials를 클릭하여 자격 증명 정보를 NoteBook에 붙여넣습니다.
※ 이때 「credentials_1」이 되지만, 「_1」은 삭제한다
사용법은 아래와 같이 이번에는 업로드한 이미지를 표시해 보았다.
파이썬from IPython.display import Image, display_png
from ibm_botocore.client import Config
import ibm_boto3
# ペーストされる情報******************
# @hidden_cell
# The following code contains the credentials for a file in your IBM Cloud Object Storage.
# You might want to remove those credentials before you share your notebook.
credentials = {
# *******
}
# ペーストされる情報******************
cos = ibm_boto3.client(service_name='s3',
ibm_api_key_id=credentials['IBM_API_KEY_ID'],
ibm_service_instance_id=credentials['IAM_SERVICE_ID'],
ibm_auth_endpoint=credentials['IBM_AUTH_ENDPOINT'],
config=Config(signature_version='oauth'),
endpoint_url=credentials['ENDPOINT'])
cos.download_file(Bucket=credentials['BUCKET'],Key=credentials['FILE'],Filename=credentials['FILE'])
display_png(Image(credentials['FILE']))
Reference
이 문제에 관하여(watson 노트북에서 파일 처리), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/kashih/items/936d3ccb3e944b72eccb
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
오른쪽 상단에 표시된 파일 업로드 아이콘을 클릭하여 파일을 업로드합니다.

ICOS(Ibm Cloud Object Storage)에 파일이 저장되어 있으므로, 한 번 호출하는 처리를 작성할 필요가 있다.
업로드된 파일 아래에 있는 insert to code를 클릭하고 insert Credentials를 클릭하여 자격 증명 정보를 NoteBook에 붙여넣습니다.
※ 이때 「credentials_1」이 되지만, 「_1」은 삭제한다
사용법은 아래와 같이 이번에는 업로드한 이미지를 표시해 보았다.
파이썬
from IPython.display import Image, display_png
from ibm_botocore.client import Config
import ibm_boto3
# ペーストされる情報******************
# @hidden_cell
# The following code contains the credentials for a file in your IBM Cloud Object Storage.
# You might want to remove those credentials before you share your notebook.
credentials = {
# *******
}
# ペーストされる情報******************
cos = ibm_boto3.client(service_name='s3',
ibm_api_key_id=credentials['IBM_API_KEY_ID'],
ibm_service_instance_id=credentials['IAM_SERVICE_ID'],
ibm_auth_endpoint=credentials['IBM_AUTH_ENDPOINT'],
config=Config(signature_version='oauth'),
endpoint_url=credentials['ENDPOINT'])
cos.download_file(Bucket=credentials['BUCKET'],Key=credentials['FILE'],Filename=credentials['FILE'])
display_png(Image(credentials['FILE']))
Reference
이 문제에 관하여(watson 노트북에서 파일 처리), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/kashih/items/936d3ccb3e944b72eccb텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)