默认情况下,一个情节情节有他们的标志和文字,如“用情节制作”(右上角)。我有一个高级帐户,想删除该徽标。
这是一个完成最终情节的小代码片段:
plotly.tools.set_credentials_file(username='username', api_key='xxxxxxx')
list_df = pd.read_csv('my_csv_file.csv')
names_df = list_df['Name']
trace = go.Scatter(
x = list_df['Abc'],
y = list_df['Xyz'],
visible=True,
text=names_df,
hoverinfo = 'text',
hoverlabel=dict(bgcolor='white'),
name='ABC',
line = dict(color='#17BECF'),
mode = "markers",
marker=dict(size=8),
showlegend=False,
opacity = 0.8
)
data = [trace]
layout = go.Layout(
title='Lyout Name',
hovermode = 'closest',
xaxis=dict(
title='Title X axis',
titlefont=dict(
family='Courier New, monospace',
size=18,
color='#7f7f7f'
)
),
yaxis=dict(
title='Title Y axis',
titlefont=dict(
family='Courier New, monospace',
size=18,
color='#7f7f7f'
)
)
)
config = {
'scrollZoom': False,
'displayModeBar': …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用远程 SSH 从我的 Windows 10 机器连接到我的 Ubuntu Linux 服务器 (16.04.6)。为此,我阅读了许多不同的教程,但都没有成功。
我可以通过 ssh 从我的 Windows 10 命令提示符连接到 Ubuntu Linux 服务器,没有任何问题。我什至使用 ssh-keygen 生成私钥和公钥,并将公钥复制到 Linux 服务器 (.ssh) 上的相应目录。
在 VsCode 中,我安装了扩展 Remote-SSH 将我的主机添加到我的配置文件 c:\user.ssh\config:
Host <ip-address>
HostName <ip-address>
User <username>
Run Code Online (Sandbox Code Playgroud)
然后我在 VSCode 中单击左下角的按钮“打开远程窗口”并选择了我的主机。一个新窗口打开,VSCode 正在尝试连接。然后我看到一个带有错误消息的窗口:“无法建立与 的连接。连接被取消”。这是日志。
[11:53:17.573] Log Level: 2
[11:53:17.582] remote-ssh@0.51.0
[11:53:17.583] win32 x64
[11:53:17.586] SSH Resolver called for "ssh-remote+<ip-address>", attempt 1
[11:53:17.587] SSH Resolver called for host: <ip-address>
[11:53:17.587] Setting up SSH remote "<ip-address>"
[11:53:17.648] Using commit id "5763d909d5f12fe19f215cbfdd29a91c0fa9208a" and quality "stable" …Run Code Online (Sandbox Code Playgroud) 我正在尝试执行以下脚本:
import Foundation
class TestURLSession{
var session: NSURLSession!
func run(){
session = NSURLSession.sharedSession()
let url = NSURL(string: "http://www.veenex.de/tmp/json")
let request = NSMutableURLRequest(URL: url!)
request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
request.HTTPMethod = "GET"
let getDataTask = session.dataTaskWithRequest(request, completionHandler: {(data, response, error) in
// HTTP Response contains an error
if let httpResponse = response as? NSHTTPURLResponse {
if httpResponse.statusCode != 200 {
print("response was not 200: \(response)")
return
}
}
// Error submitting Request
if error != nil {
print("error submitting request: \(error)")
return …Run Code Online (Sandbox Code Playgroud)