Skip to content

Instantly share code, notes, and snippets.

@Shaiken
Shaiken / uploadImg4jupyter.py
Last active January 22, 2021 12:36
Access Jupyter API for Python(使用Jupyter API 上傳檔案等)..
import requests
import os
import base64
import urllib.parse
import json
import socket
def jupyter_uploadfile(theport, filePath, resourceDstPath):
'''
param: