ai驱动数据安全治理_JupyterLab中的AI驱动的代码完成

ai驱动数据安全治理

As a data scientist, you almost surely use a form of Jupyter Notebooks. Hopefully, you have moved over to the goodness of JupyterLab with its integrated sidebar, tabs, and more. When it first launched in 2018, JupyterLab was great but felt it was missing some things.

作为数据科学家,您几乎可以肯定使用某种形式的Jupyter笔记本。 希望您已将JupyterLab的优势与集成的侧边栏,选项卡等一起使用。 当JupyterLab于2018年首次推出时,它很棒,但感觉它缺少一些东西。

Now you can add a visual debugger and there is even a library called nbdev that allows you to author full Python packages and push them to PyPI. JupyterLab has become a complete IDE for data scientists. But one thing was still sub-optimal until recently, code completions.

现在,您可以添加一个视觉调试器 ,甚至还有一个名为nbdev的库,该库可让您编写完整的Python程序包并将其推送到PyPI。 JupyterLab已成为数据科学家的完整IDE。 但是直到最近,代码完成仍然是次优的。

Trying to use the built-in code completion in JupyterLab gets you something like this:

尝试在JupyterLab中使用内置的代码完成功能会为您提供以下信息:

Image for post
When you do really ever want the absolute value of a whole dataframe?
当您真的想要整个数据框的绝对值时?

Kite, a company that makes code completion software for a variety of languages and IDE’s, recently launched Kite for JupyterLab. Now you can get something like this:

风筝 ,一个公司,使代码完成软件适用于各种语言和IDE的,最近推出的风筝JupyterLab。 现在,您可以获得以下内容:

Image for post
That makes much more sense.
这更有意义。

Simplify your life with logical autocompletion. It runs locally and doesn’t send your code to the cloud.

逻辑自动完成功能可简化您的生活。 它在本地运行,不会将您的代码发送到云中。

Image for post
Yes, I DO want plt.plot(). Thanks.
是的,我确实想要plt.plot()。 谢谢。

It isn’t perfect, and it certainly doesn’t read your mind. It IS a good upgrade for the default code completion though.

它不是完美的,并且肯定不会读懂你的想法。 对于默认代码完成,这是一个很好的升级。

Kite for JupyterLab brings you one step closer to a full notebook based IDE.

适用于JupyterLab的Kite使您距离基于笔记本的完整IDE更近了一步。

如何为JupyterLab安装Kite (How to Install Kite for JupyterLab)

Installing Kite for JupyterLab is fairly painless.

为JupyterLab安装Kite相当简单。

  1. First, install Kite for Desktop. You can get the installer here. Versions are available for Windows, Mac, and Linux.

    首先,安装桌面版Kite。 您可以在此处获取安装程序。 这些版本适用于Windows,Mac和Linux。

  2. Make sure your JupyterLab is version 2.2 or later. This is a pretty recent version of JupyterLab so you may need to upgrade with your install with conda or pip.

    确保您的JupyterLab是2.2或更高版本。 这是JupyterLab的最新版本,因此您可能需要使用condapip进行安装升级

  3. Install the JupyterLab extension. You will need NodeJS installed just like for your other extensions.

    安装JupyterLab扩展。 与其他扩展一样,您将需要安装NodeJS。
pip install jupyter-kitejupyter labextension install "@kiteco/jupyterlab-kite"

到目前为止的经验 (My experience so far)

I’ve only used Kite for JupyterLab for about a week now. It’s not groundbreaking, but it certainly makes my coding experience that much better. Completions are noticeably faster than the native completions as well.

我仅在JupyterLab上使用Kite已有大约一周的时间。 这不是开创性的,但是肯定可以使我的编码体验好得多。 完成的速度也明显快于本地完成的速度。

I’m using the free version of Kite, and the completions take place 100% locally. The best suggestion for me isn’t always at the top, but it’s usually in the top 5. As data scientists, we use LOTS of methods, and this is a nice way to get reminders when needed.

我使用的是免费版本的Kite,补全在本地100%完成。 对我来说,最好的建议并不总是排在最前面,而是通常排在前5位。作为数据科学家,我们使用很多方法,这是在需要时获得提醒的一种好方法。

Happy coding!

编码愉快!

Robert Ritz is a Data Scientist and educator based in Ulaanbaatar, Mongolia. He can be reached at robertritz@outlook.com.

罗伯特·里兹(Robert Ritz)是位于蒙古乌兰巴托的数据科学家和教育家。 可以通过robertritz@outlook.com与他联系。

翻译自: https://towardsdatascience.com/ai-powered-code-completion-in-jupyterlab-53e53850080c

ai驱动数据安全治理

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/388222.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【Android】Retrofit 2.0 的使用

一、概述 Retrofit是Square公司开发的一个类型安全的Java和Android 的REST客户端库。来自官网的介绍: A type-safe HTTP client for Android and JavaRest API是一种软件设计风格,服务器作为资源存放地。客户端去请求GET,PUT, POST,DELETE资源。并且是无…

Mysql常用命令(二)

对数据库的操作 增 create database db1 charset utf8; 查 # 查看当前创建的数据库 show create database db1; # 查看所有的数据库 show databases; 改 alter database db1 charset gbk; 删 drop database db1; 对表的操作 use db1; #切换文件夹select database(); #查看当前所…

python中定义数据结构_Python中的数据结构—简介

python中定义数据结构You have multiples algorithms, the steps of which require fetching the smallest value in a collection at any given point of time. Values are assigned to variables but are constantly modified, making it impossible for you to remember all…

Unity3D 场景与C# Control进行结合

杨航最近在自学Unity3D,打算使用这个时髦、流行、强大的游戏引擎开发一个三维业务展示系统,不过发现游戏的UI和业务系统的UI还是有一定的差别,很多的用户还是比较习惯WinForm或者WPF中的UI形式,于是在网上搜了一下WinForm和Unity3…

数据质量提升_合作提高数据质量

数据质量提升Author Vlad Rișcuția is joined for this article by co-authors Wayne Yim and Ayyappan Balasubramanian.作者 Vlad Rișcuția 和合著者 Wayne Yim 和 Ayyappan Balasubramanian 共同撰写了这篇文章 。 为什么要数据质量? (Why data quality?) …

unity3d 人员控制代码

普通浏览复制代码private var walkSpeed : float 1.0;private var gravity 100.0;private var moveDirection : Vector3 Vector3.zero;private var charController : CharacterController;function Start(){charController GetComponent(CharacterController);animation.w…

删除wallet里面登机牌_登机牌丢失问题

删除wallet里面登机牌On a sold-out flight, 100 people line up to board the plane. The first passenger in the line has lost his boarding pass but was allowed in regardless. He takes a random seat. Each subsequent passenger takes their assigned seat if availa…

字符串操作截取后面的字符串_对字符串的5个必知的熊猫操作

字符串操作截取后面的字符串We have to represent every bit of data in numerical values to be processed and analyzed by machine learning and deep learning models. However, strings do not usually come in a nice and clean format and require preprocessing to con…

最新 Unity3D鼠标滑轮控制物体放大缩小 [

var s 1.0;function Update () {var cube GameObject.Find("Cube");if(Input.GetAxis("Mouse ScrollWheel")){s Input.GetAxis("Mouse ScrollWheel");cube.transform.localScaleVector3(1*s,1*s,1*s);}}

sublime-text3 安装 emmet 插件

下载sublime,http://www.sublimetext.com/ 安装package control :https://packagecontrol.io/ins... 这个地址需要翻墙,访问不了的可以看下图 import urllib.request,os,hashlib; h 6f4c264a24d933ce70df5dedcf1dcaee ebe013ee18cced0ef93d…

unity3d]鼠标点击地面人物自动走动(也包含按键wasdspace控制)

目录(?)[-] 一效果图二大概步骤 创建一个plane设置层为Terrain因为后面要判断是否点击的是这个层准备好人物模型并且将三个脚本拖放到人物上并且将动画文件也拖放好记得看前面提醒哦 ThirdPersonCamera相当于smoothflowThirdPersonController修改版mouseMoveContr鼠标点击人物…

Web 开发基础

一、 Web 开发简介 最早的软件都是运行在大型机上的,软件使用者登陆到大型机上去运行软件。后来随着 PC 机的兴起,软件开始主要运行在桌面上,而数据库这样的软件运行在服务器端,这种 Client/Server 模式简称 CS 架构。随着互联网的…

power bi函数_在Power BI中的行上使用聚合函数

power bi函数Aggregate functions are one of the main building blocks in Power BI. Being used explicitly in measures, or implicitly defined by Power BI, there is no single Power BI report which doesn’t use some sort of aggregate functions.聚合功能是Power BI…

广义估计方程估计方法_广义估计方程简介

广义估计方程估计方法A key assumption underpinning generalized linear models (which linear regression is a type of) is the independence of observations. In longitudinal data this will simply not hold. Observations within an individual (between time points) …

Unity3d鼠标点击屏幕来控制人物的走动

今天呢,我们来一起实现一个在RPG中游戏中十分常见的功能,通过鼠标点击屏幕来控制人物的走动。首先来说一下原理,当我们点击屏幕时,我们按照一定的方法,将屏幕上的二维坐标转化为三维坐标,然后我们从摄像机位…

Java中的ReentrantLock和synchronized两种锁定机制的对比

2019独角兽企业重金招聘Python工程师标准>>> 多线程和并发性并不是什么新内容,但是 Java 语言设计中的创新之一就是,它是第一个直接把跨平台线程模型和正规的内存模型集成到语言中的主流语言。核心类库包含一个 Thread 类,可以用它…

大数定理 中心极限定理_中心极限定理:直观的遍历

大数定理 中心极限定理One of the most beautiful concepts in statistics and probability is Central Limit Theorem,people often face difficulties in getting a clear understanding of this and the related concepts, I myself struggled understanding this during my…

探索性数据分析(EDA)-不要问如何,不要问什么

数据科学 , 机器学习 (Data Science, Machine Learning) This is part 1 in a series of articles guiding the reader through an entire data science project.这是一系列文章的第1部分 ,指导读者完成整个数据科学项目。 I am a new writer on Medium…

IDEA 插件开发入门教程

2019独角兽企业重金招聘Python工程师标准>>> IntelliJ IDEA 是目前最好用的 JAVA 开发 IDE,它本身的功能已经非常强大了,但是每个人的需求不一样,有些需求 IDEA 本身无法满足,于是我们就需要自己开发插件来解决。工欲善…

安卓代码还是xml绘制页面_我们应该绘制实际还是预测,预测还是实际还是无关紧要?

安卓代码还是xml绘制页面Plotting the actual and predicted data is frequently used for visualizing and analyzing how the actual data correlate with those predicted by the model. Ideally, this should correspond to a slope of 1 and an intercept of 0. However, …