간단히 써보니 마크다운 입력하고 Ctrl+Enter치면 입력한 내용이 랜더링되어 보기 좋게 나온다. 

리포트 형식으로 제공할 때 요긴할 것 같다.


참고 링크

http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html


'Jupyter' 카테고리의 다른 글

jupyter 암호 설정하기  (0) 2016.11.15
Python 시각화 관련 링크 모음  (0) 2016.08.25
Jupyter 시작하기  (0) 2016.08.24


seabord

https://stanford.edu/~mwaskom/software/seaborn/index.html


pandas

http://pandas.pydata.org/pandas-docs/version/0.15.0/visualization.html


'Jupyter' 카테고리의 다른 글

jupyter 암호 설정하기  (0) 2016.11.15
Jupyter에서 마크다운을 써보자  (0) 2016.08.25
Jupyter 시작하기  (0) 2016.08.24


Jupyter 설치 후 커맨드 라인에서 다음과 같이 입력하면 Jypyter가 실행된다.


$ jupyter notebook



'Jupyter' 카테고리의 다른 글

jupyter 암호 설정하기  (0) 2016.11.15
Jupyter에서 마크다운을 써보자  (0) 2016.08.25
Python 시각화 관련 링크 모음  (0) 2016.08.25


base64로 인코딩된 데이터를 디코딩하려면

다음 두 함수가 필요하다.


Binary Functions

from_base64(string) → varbinary

Decodes binary data from the base64 encoded string.


String Functions

to_utf8(string) → varbinary

Encodes string into a UTF-8 varbinary representation.



두 함수의 조합으로 다음과 같이 쿼리를 하면 base64 디코딩한 문자열을 얻을 수 있다.


SELECT from_utf8( from_base64 ( my_column ) )

FROM myTable


'Presto' 카테고리의 다른 글

[Presto] 사용팁 정리  (0) 2016.10.27
Presto에서 JSON 다루기  (0) 2016.08.12

Presto 0.151 Documentation에 보면 JSON함수 이야기가 나온다.

내가 필요한 내용 위주로 다시 정리해 본다.



1. 일부 값 추출하기 

  • json_extract( json, json_path )
  • 예) json_extract( json, '$.root.child')


2. "a"인 경우 "제거한 a만 구하기

  • json_extract_scalar( json, json_path )
  • 예) json_extract_scalar( json, '$.root.child')


3. 사이즈 구하기

  • json_size( json, json_path)
  • 예) json_size( json, '$.root' )


나머지 함수에 대한 자료

https://prestodb.io/docs/current/functions/json.html


'Presto' 카테고리의 다른 글

[Presto] 사용팁 정리  (0) 2016.10.27
Presto에서 base64 데이터 디코딩하기  (0) 2016.08.17

맥 OS를 업그레이드를 하고 났더니 port 커맨드로 설치가 안된다.

메시지를 자세히 봤더니 마이그레이션을 해야 한다고 한다.


먼저 다음 페이지로 가보았고 다시보니 OS 버전에 따른 MacPorts를 다시 설치하면 되는 것이었다.


https://trac.macports.org/wiki/Migration



Step1  다음 페이지로 가서 나에게 맞는 MacPorts를 다시 설치했다.


https://www.macports.org/install.php



Step2 Xcode 커맨드 라인 갱신


프로그램 다운로드 및 설치가 되는것을 확인했지만 Warning이 떠서 다음 커맨드를 실행하였다.


xcode-select --install



이제 잘된다.





리소스매니저 재시작하기



sudo /sbin/stop hadoop-yarn-resourcemanager

sudo /sbin/start hadoop-yarn-resourcemanager





grep -rl "Delete" *.sh



+ Recent posts