Python中文
首页
教程
问答
标签
搜索
登录
注册
在将代码从sublime复制到jupyter noteb时,identification转换成了诡异的箭头
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>从sublime复制这段代码:</p> <pre><code># Texts Texts Texts Texts Texts Texts for i in range(10): #Idented Texxt print i </code></pre> <p>结果如下,在jupyter笔记本中有line标签。现在如果我想添加代码并在jupyter中做进一步的测试,我需要复制这个奇怪的箭头,而不是点击tab(否则,它显示缩进错误)。有什么简单的方法可以改变吗?我可以想象我错过了一些非常简单的事情,这可能根本不是问题。我试着找了看,但没有发现这件事。我可以在sublime中将所有缩进改为空格,这可能在复制时起作用,但我更喜欢使用制表符,以使代码可读。在</p> <p><a href="https://i.stack.imgur.com/dAhmd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dAhmd.png" alt="enter image description here"/></a></p> <p>第二张图片有两个标签,在笔记本中看起来如何。在</p> <p><a href="https://i.stack.imgur.com/ccMW4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ccMW4.png" alt="enter image description here"/></a></p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>将脚本从sublime复制到Jupyter cells后:</p> <ol> <li>选择所有带箭头的行</li> <li>按<strong>制表符</strong>-这将删除箭头并在每行的开头添加一个制表符</li> <li>按<strong>Shift+Tab</strong>-这将删除上述步骤中添加的所有选项卡</li> </ol>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
无法使用Django/mongoengine连接到MongoDB(身份验证失败)
8 回答
无法使用Django\u mssql\u后端迁移到外部hos
9 回答
无法使用Django&Python3.4连接到MySql
7 回答
无法使用Django+nginx上载媒体文件
5 回答
无法使用Django1.6导入名称模式
4 回答
无法使用Django1.7和mongodb登录管理站点
4 回答
无法使用Djangoadmin创建项目,进程使用了错误的路径,因为我事先安装了错误的Python
4 回答
无法使用Djangockedi验证CBV中的字段
6 回答
无法使用Djangocketditor上载图像(错误400)
9 回答
无法使用Djangocron进行函数调用
3 回答
无法使用Djangofiler djang上载文件
1 回答
无法使用Djangokronos
3 回答
无法使用Djangomssql provid
6 回答
无法使用Djangomssql连接到带有Django 1.11的MS SQL Server 2016
1 回答
无法使用Djangomssq迁移Django数据库
4 回答
无法使用Djangonox创建用户
8 回答
无法使用Djangopyodb从Django查询SQL Server
2 回答
无法使用Djangopython3ldap连接到ldap
2 回答
无法使用Djangoredis连接到redis
8 回答
无法使用Django中的FK创建新表
1 回答