我已经安装了Anaconda,我使用conda环境和conda命令来安装软件.
当我输入:
jupyter notebook --version
我收到以下错误:
zsh: /Users/cr517/.local/bin/jupyter: bad interpreter: /Users/cr517/anaconda/envs/snakes/bin/python: no such file or directory
5.2.1
我可以通过键入打开一个jupyter笔记本:jupyter notebook xyz.ipynb但我不能运行任何单元格.*我运行后标记了单元格.很快,此消息显示在弹出框中:
The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.
我打开一个jupyter notebok后在终端得到这个:
zsh: /Users/cr517/.local/bin/jupyter: bad interpreter: /Users/cr517/anaconda/envs/snakes/bin/python: no …Run Code Online (Sandbox Code Playgroud) 我正在 .Rpres 文件中编写 R 演示文稿。我在这里在 Rpubs 上发布了我的演示文稿:http ://rpubs.com/cr517/presentationGurdon 我将图像存储在 PDF 文件中。我试图将它们包含在我的演示文稿中,但没有成功。我正在使用此命令来包含图像:

Run Code Online (Sandbox Code Playgroud)
与 .jpg 相同。此命令不会导致图像的显示。我试图遵循这些答案,但无法使其工作:
R markdown:我可以将pdf作为图像插入到r markdown文件中吗?
如果有人可以帮助我,那将不胜感激。这将使我免于重新运行以 .jpg 格式导出图像的代码。
非常感谢。
我在macOS High Sierra 10.13.3上工作.我的shell是bash.
当我输入时, echo {1,2}{3,4}
我明白了:13 14 23 24.
有没有选择13 24吗?
我有兴趣创建许多文件,其中文件中的两个位置一起变化.例如,我想要的文件:
file1file1
file2file2
file3file3
写一些file{1,2,3}file{1,2,3} option代替的东西会很方便file1file1 file2file2 file3file3.
我希望能够在命令中使用此扩展,例如:
touch file{1,2,3}file{1,2,3} option 创建三个文件.
我希望我正在寻找的功能是清楚的.
最终,我想要使用此功能的上下文是使用snakemake命令:
snakemake --cores 3 release{42,43,44}/file{42,43,44}.txt
我想要snakemake生成文件release42/file42.txt,release43/file43.txt和release44/file44.txt.
如果我使用循环来实现这一点,文件将连续生成.但是,通过键入snakemake release42/file42.txt release43/file43.txt release44/file44.txt,将同时生成三个文件.但是,因为我很懒,所以我想输入一些短于的东西snakemake release42/file42.txt release43/file43.txt release44/file44.txt.
我正在使用这段代码:
ggplot2::ggplot(DATAFRAME, aes(x = as.factor(VARIABLE))) + ggplot2::geom_bar()
Run Code Online (Sandbox Code Playgroud)
绘制数据框 DATAFRAME 中变量 VARIABLE 每个级别的出现次数。然而,它是一个相当长的数据框,所以我希望计数以千为单位而不是单位。有人知道怎么做这个吗?