Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- AZURE
- 데일리
- 빅쿼리
- Ga
- openAI
- AWS
- bigquery
- Python
- 서평
- SQL
- 태블로
- 필사
- 데이터분석
- review
- 구글애널리틱스
- datastudio
- 챗GPT
- Q
- daily
- Adobe
- tableau
- diary
- 데이터시각화
- GPT
- ChatGPT
- 파이썬
- r
- 북리뷰
- 책리뷰
- 생성AI
Archives
- Today
- Total
목록ipynb (1)
가볍게 배우고 깊게 즐기고 오래 남기기
[Pyton || Tip] nbformat 라이브러리를 활용한 노트북파일(ipynb) py변환
import nbformatnotebook_path = 'name.ipynb'with open(notebook_path, 'r', encoding='utf-8') as f: notebook = nbformat.read(f, as_version=4)code_cells = [cell for cell in notebook.cells if cell.cell_type == 'code']script_content = "\n\n".join(cell.source for cell in code_cells)# Save the script to a .py filescript_path = 'name.py'with open(script_path, 'w', encoding='utf-8') as f: f.write(sc..
Programming & Tip/Python
2024. 5. 20. 14:03