![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jupyter notebook
努力不脱发选手
努力的程度要超过父母老去的速度。
展开
-
jupyter notebook magic %time %%time 告诉你运行时长
在编程的时候有时候我们想要比较 两种算法哪个更快 或者自己的代码哪一段最慢 这时候就可以使用 magic函数magic有行魔法%time 和单元魔法%%time行魔法 显示这一行代码运行的时长 单元魔法显示这一个cell 运行的时长%%timeimport sqlite3 as sqlconn_origin=sql.connect('3.db')print("打开了数据库")w...原创 2019-01-31 17:02:46 · 7675 阅读 · 0 评论 -
jupyter notebook 远程连接出现问题xxx refused to connect. Try: Checking the connection Checking t的解决方法
服务器终端输入:ps aux | grep jupyter然后会跳出一些数值记住root后面四位数字用kill -9如kill -9 1086kill -9 1314然后输入`tmux at再jupyter-notebook —allow-root这样在浏览器里输入ip号:端口号就可以访问了...原创 2019-01-29 13:24:42 · 4801 阅读 · 0 评论