-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41f878b
commit 07b3a39
Showing
31 changed files
with
2,892 additions
and
1,400 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Adding a new post" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 5, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"title = \"How to pin the conda\"" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 6, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"tags_list = ['python', 'conda', 'pinned']" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 7, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"\u001b[33;01m[2016-06-19T18:54:49Z] WARNING: Nikola: The RSS_LINKS_APPEND_QUERY option is deprecated, use FEED_LINKS_APPEND_QUERY instead.\u001b[39;49;00m\n", | ||
"\u001b[33;01m[2016-06-19T18:54:49Z] WARNING: Nikola: The RSS_READ_MORE_LINK option is deprecated, use FEED_READ_MORE_LINK instead.\u001b[39;49;00m\n", | ||
"\u001b[33;01m[2016-06-19T18:54:49Z] WARNING: Nikola: Could not guess locale for language es, using locale en_US.UTF-8\u001b[39;49;00m\n", | ||
"Creating New Post\n", | ||
"-----------------\n", | ||
"\n", | ||
"Title: How to pin the conda\n", | ||
"Scanning posts......done!\n", | ||
"\u001b[33;01m[2016-06-19T18:54:52Z] NOTICE: compile_ipynb: No kernel specified, assuming \"python3\".\u001b[39;49;00m\n", | ||
"\u001b[37m[2016-06-19T18:54:53Z] INFO: new_post: Your post's text is at: posts/how-to-pin-the-conda.ipynb\u001b[39;49;00m\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"tags = ', '.join(tags_list)\n", | ||
"\n", | ||
"!nikola new_post -f ipynb -t \"{title}\" --tags=\"{tags}\"" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 8, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"http://127.0.0.1:8888/notebooks/posts/how-to-pin-the-conda.ipynb\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"base_url = \"http://127.0.0.1:\"\n", | ||
"port = 8888\n", | ||
"\n", | ||
"from nikola import utils\n", | ||
"notebook = \"/notebooks/posts/\" + utils.slugify(title, lang=\"en\") + \".ipynb\" \n", | ||
"\n", | ||
"url = base_url + str(port) + notebook\n", | ||
"print(url)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.5.1" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Searching on Github in more powerful than you probably know and the aim of this post is to show you how you can use the search capabilities on Github to have a clear picture of the Issues and PRs you involved with across all (or a subset of) the repos/projects you contribute to.\n", | ||
"\n", | ||
"<!-- TEASER_END -->\n", | ||
"\n", | ||
"First, we need to analyze how \"no so simple\" queries are interpreted and executed by the search engine on Github.\n", | ||
"\n", | ||
"Let's find the Issues I am `involved` with in the **Bokeh** main repository\n", | ||
"\n" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.5.1" | ||
}, | ||
"nikola": { | ||
"category": "", | ||
"date": "2016-06-06 21:03:44 UTC-03:00", | ||
"description": "", | ||
"link": "", | ||
"slug": "searching-on-github", | ||
"tags": "python, github, Jupyter, api, search", | ||
"title": "Searching on Github", | ||
"type": "text" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
<div class="cell border-box-sizing text_cell rendered"> | ||
<div class="prompt input_prompt"> | ||
</div> | ||
<div class="inner_cell"> | ||
<div class="text_cell_render border-box-sizing rendered_html"> | ||
<p>One interesting advance feature in Conda in the capacity to pin packages from your environments so they can not be updated at all. If you are interested in <strong>that</strong> specific version of some package and not the next one because it breaks you completely or because some other reason, you are probably pinning that package (if this is not the case, you should do the pin in the way I will describe instead of adding the specific version in every command you run). But... is it possible to pin Conda itself so it does not get updated every time you try to install/update something else? | ||
<!-- TEASER_END --></p> | ||
<p>If you don't know what Conda is, you should probably go <a href="http://conda.pydata.org/docs/">here</a> and learn a little bit about it. For the lazy ones:</p> | ||
<blockquote><p>Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.</p> | ||
</blockquote> | ||
<p>One interesting behavior in Conda is that it gets updated to the latest version every time you try to install/update something else. That is a reasonable behavior in the general context but, for some specific use cases, that can be undesirable. And in the previous undesire you have the origin of the main question I raised before: is it possible to pin Conda itself so it does not get updated every time you try to install/update something else?</p> | ||
<p>I have heard a lot of people saying it is impossible to pin Conda, BUT that's not the case ;-)</p> | ||
<p>You can pin Conda the same way you pin any other package.</p> | ||
<p>Let me show you how you can do it... is <strong>really</strong> simple. Just one line:</p> | ||
<div class="highlight"><pre><span></span><span class="nb">echo</span> <span class="s2">"conda ==4.0.0"</span> > ~/anaconda/conda-meta/pinned | ||
</pre></div> | ||
<p>This will create a file called <code>pinned</code> containing the <code>conda</code> package version you are interested to keep (in this case, I choose the version <code>4.0.0</code>). This <code>pinned</code> file should be located in the <code>conda-meta</code> directory from your anaconda (or miniconda) installation. Then, every time you try to install or update something, this <code>pinned</code> file is read by Conda and the line with the <code>conda</code> specific version is added to the list sent to the SAT solver, hence you will always have that specification <em>enabled</em>, preventing you to update to a newer conda. Nice, don't you think?</p> | ||
<p>You can remove that file when you are ready to catch a new Conda version or alternative you can run <code>conda</code> install/update commands with the <code>--no-pin</code> option.</p> | ||
<p>Hope this helps others! If not, at least, it was fun to play a little bit with this feature!</p> | ||
<p>See you next time!</p> | ||
|
||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
<div class="cell border-box-sizing text_cell rendered"> | ||
<div class="prompt input_prompt"> | ||
</div> | ||
<div class="inner_cell"> | ||
<div class="text_cell_render border-box-sizing rendered_html"> | ||
<p>One interesting advance feature in Conda in the capacity to pin packages from your environments so they can not be updated at all. If you are interested in <strong>that</strong> specific version of some package and not the next one because it breaks you completely or because some other reason, you are probably pinning that package (if this is not the case, you should do the pin in the way I will describe instead of adding the specific version in every command you run). But... is it possible to pin Conda itself so it does not get updated every time you try to install/update something else? | ||
<!-- TEASER_END --></p> | ||
<p>If you don't know what Conda is, you should probably go <a href="http://conda.pydata.org/docs/">here</a> and learn a little bit about it. For the lazy ones:</p> | ||
<blockquote><p>Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.</p> | ||
</blockquote> | ||
<p>One interesting behavior in Conda is that it gets updated to the latest version every time you try to install/update something else. That is a reasonable behavior in the general context but, for some specific use cases, that can be undesirable. And in the previous undesire you have the origin of the main question I raised before: is it possible to pin Conda itself so it does not get updated every time you try to install/update something else?</p> | ||
<p>I have heard a lot of people saying it is impossible to pin Conda, BUT that's not the case ;-)</p> | ||
<p>You can pin Conda the same way you pin any other package.</p> | ||
<p>Let me show you how you can do it... is <strong>really</strong> simple. Just one line:</p> | ||
<div class="highlight"><pre><span></span><span class="nb">echo</span> <span class="s2">"conda ==4.0.0"</span> > ~/anaconda/conda-meta/pinned | ||
</pre></div> | ||
<p>This will create a file called <code>pinned</code> containing the <code>conda</code> package version you are interested to keep (in this case, I choose the version <code>4.0.0</code>). This <code>pinned</code> file should be located in the <code>conda-meta</code> directory from your anaconda (or miniconda) installation. Then, every time you try to install or update something, this <code>pinned</code> file is read by Conda and the line with the <code>conda</code> specific version is added to the list sent to the SAT solver, hence you will always have that specification <em>enabled</em>, preventing you to update to a newer conda. Nice, don't you think?</p> | ||
<p>You can remove that file when you are ready to catch a new Conda version or alternative you can run <code>conda</code> install/update commands with the <code>--no-pin</code> option.</p> | ||
<p>Hope this helps others! If not, at least, it was fun to play a little bit with this feature!</p> | ||
<p>See you next time!</p> | ||
|
||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
<div class="cell border-box-sizing text_cell rendered"> | ||
<div class="prompt input_prompt"> | ||
</div> | ||
<div class="inner_cell"> | ||
<div class="text_cell_render border-box-sizing rendered_html"> | ||
<p>One interesting advance feature in Conda in the capacity to pin packages from your environments so they can not be updated at all. If you are interested in <strong>that</strong> specific version of some package and not the next one because it breaks you completely or because some other reason, you are probably pinning that package (if this is not the case, you should do the pin in the way I will describe instead of adding the specific version in every command you run). But... is it possible to pin Conda itself so it does not get updated every time you try to install/update something else? | ||
<!-- TEASER_END --></p> | ||
<p>If you don't know what Conda is, you should probably go <a href="http://conda.pydata.org/docs/">here</a> and learn a little bit about it. For the lazy ones:</p> | ||
<blockquote><p>Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.</p> | ||
</blockquote> | ||
<p>One interesting behavior in Conda is that it gets updated to the latest version every time you try to install/update something else. That is a reasonable behavior in the general context but, for some specific use cases, that can be undesirable. And in the previous undesire you have the origin of the main question I raised before: is it possible to pin Conda itself so it does not get updated every time you try to install/update something else?</p> | ||
<p>I have heard a lot of people saying it is impossible to pin Conda, BUT that's not the case ;-)</p> | ||
<p>You can pin Conda the same way you pin any other package.</p> | ||
<p>Let me show you how you can do it... is <strong>really</strong> simple. Just one line:</p> | ||
<div class="highlight"><pre><span></span><span class="nb">echo</span> <span class="s2">"conda ==4.0.0"</span> > ~/anaconda/conda-meta/pinned | ||
</pre></div> | ||
<p>This will create a file called <code>pinned</code> containing the <code>conda</code> package version you are interested to keep (in this case, I choose the version <code>4.0.0</code>). This <code>pinned</code> file should be located in the <code>conda-meta</code> directory from your anaconda (or miniconda) installation. Then, every time you try to install or update something, this <code>pinned</code> file is read by Conda and the line with the <code>conda</code> specific version is added to the list sent to the SAT solver, hence you will always have that specification <em>enabled</em>, preventing you to update to a newer conda. Nice, don't you think?</p> | ||
<p>You can remove that file when you are ready to catch a new Conda version or alternative you can run <code>conda</code> install/update commands with the <code>--no-pin</code> option.</p> | ||
<p>Hope this helps others! If not, at least, it was fun to play a little bit with this feature!</p> | ||
<p>See you next time!</p> | ||
|
||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
<div class="cell border-box-sizing text_cell rendered"> | ||
<div class="prompt input_prompt"> | ||
</div> | ||
<div class="inner_cell"> | ||
<div class="text_cell_render border-box-sizing rendered_html"> | ||
<p>One interesting advance feature in Conda in the capacity to pin packages from your environments so they can not be updated at all. If you are interested in <strong>that</strong> specific version of some package and not the next one because it breaks you completely or because some other reason, you are probably pinning that package (if this is not the case, you should do the pin in the way I will describe instead of adding the specific version in every command you run). But... is it possible to pin Conda itself so it does not get updated every time you try to install/update something else? | ||
<!-- TEASER_END --></p> | ||
<p>If you don't know what Conda is, you should probably go <a href="http://conda.pydata.org/docs/">here</a> and learn a little bit about it. For the lazy ones:</p> | ||
<blockquote><p>Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.</p> | ||
</blockquote> | ||
<p>One interesting behavior in Conda is that it gets updated to the latest version every time you try to install/update something else. That is a reasonable behavior in the general context but, for some specific use cases, that can be undesirable. And in the previous undesire you have the origin of the main question I raised before: is it possible to pin Conda itself so it does not get updated every time you try to install/update something else?</p> | ||
<p>I have heard a lot of people saying it is impossible to pin Conda, BUT that's not the case ;-)</p> | ||
<p>You can pin Conda the same way you pin any other package.</p> | ||
<p>Let me show you how you can do it... is <strong>really</strong> simple. Just one line:</p> | ||
<div class="highlight"><pre><span></span><span class="nb">echo</span> <span class="s2">"conda ==4.0.0"</span> > ~/anaconda/conda-meta/pinned | ||
</pre></div> | ||
<p>This will create a file called <code>pinned</code> containing the <code>conda</code> package version you are interested to keep (in this case, I choose the version <code>4.0.0</code>). This <code>pinned</code> file should be located in the <code>conda-meta</code> directory from your anaconda (or miniconda) installation. Then, every time you try to install or update something, this <code>pinned</code> file is read by Conda and the line with the <code>conda</code> specific version is added to the list sent to the SAT solver, hence you will always have that specification <em>enabled</em>, preventing you to update to a newer conda. Nice, don't you think?</p> | ||
<p>You can remove that file when you are ready to catch a new Conda version or alternative you can run <code>conda</code> install/update commands with the <code>--no-pin</code> option.</p> | ||
<p>Hope this helps others! If not, at least, it was fun to play a little bit with this feature!</p> | ||
<p>See you next time!</p> | ||
|
||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.