現在因為各種人工智慧的發展趨勢所以Python也成為了許多人剛入門寫程式的主要語言,而很多學校的實驗室都有架自己的Server。 平常可能都是用自己的筆電在寫code,那如果只是跑一些小東西可能還好,但如果要訓練比較大型的程式的時候可能會讓你等的非常崩潰。
那有沒有想過,==也許可以在Server上運行Jupyter來寫Python呢?==
| from __future__ import print_function | |
| import requests | |
| import json | |
| import cv2 | |
| addr = 'http://localhost:5000' | |
| test_url = addr + '/api/test' | |
| # prepare headers for http request | |
| content_type = 'image/jpeg' |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| #!/usr/bin/python3 | |
| # This is downloading class which uses python 3 with PyQt4. It shows how to use the | |
| # QT progress bar in python. The downloading takes place in the UrlDownloader class | |
| # which inherits from QThread. | |
| # | |
| # To test the widget: | |
| # 1. try copying a URL that points to a large file. | |
| # 2. Paste the file url into the combobox's text area, but do nothing more. | |
| # 3. Copy another URL pointing to a large file. |
| #include <iostream> // cout, cerr, etc | |
| #include <stdio.h> // perror | |
| #include <string.h> // bcopy | |
| #include <netinet/in.h> // struct sockaddr_in | |
| #include <unistd.h> // read, write, etc | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> | |
| #include <assert.h> |
| // Filename: HttpServer.cs | |
| // Author: Benjamin N. Summerton <define-private-public> | |
| // License: Unlicense (http://unlicense.org/) | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Net; | |
| using System.Threading.Tasks; |
| // MIT License - Copyright (c) 2016 Can Güney Aksakalli | |
| // https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Net.Sockets; | |
| using System.Net; | |
| using System.IO; |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <linux/i2c-dev.h> | |
| // Terrible portability hack between arm-linux-gnueabihf-gcc on Mac OS X and native gcc on raspbian. | |
| #ifndef I2C_M_RD | |
| #include <linux/i2c.h> | |
| #endif |
| decode64: function decodeBase64(en) { | |
| var de = new Uint8Array(en.length); //3/4 | |
| var u = 0, q = '', x = '', c; | |
| var map64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
| for (var r=0; c=en[x++]; ~c&&(u=q%4?u*64+c:c,q++%4)?de[r++]=(255&u>>(-2*q&6)):0) | |
| c = map64.indexOf(c); | |
| var sub = de.subarray||de.subset||de.slice; | |
| return sub.call(de, 0, r); | |
| }, |