A repo to collect issues with calmcode.io
Feel free to add issues like spelling or if there's something unclear.
A repo to collect issues with calmcode.io
transparant -> transparent
I think there's an extra indentation in https://calmcode.io/pandas-pipe/calm.html. It's hard to spot though.
This website may be a good complement to Colorhunt: https://coolors.co/generate
So as you might have noticed: I'm using calmcode as a means to explain some concepts to someone in my team. Everytime a new concept comes up, I think: let's see if there's a nice video about this. The topic of today was 'Logging'
Might be very cool to have a video about this. Some subtopics might include:
log_pd
decorator in sklego
Let me know if I can be of any help
The articles on calmcode.io are really awesome. It would be great to have a tutorial on how to create such a article with videos. Let's call it the "Making of" :-)
Possible steps:
So in the end also other people can contribute to calmcode.
I think it would be really nice to add a video about click. If I can help with this somehow, let me know!
Hi!
First of all, thanks for the great content!
So I was looking at your videos of scikit metrics and I noticed that the video in the Metric seems like the full screen recording with some overlap into the Refit Part.
Hello,
Would you consider turning calmcode to a SPA? Given the simple and clean design of the website it is easily achievable and I think would it scale much better when you grow the amount of content.
Hi,
We often use jupyter notebook and it makes sense to also use black in there to format our code. I am using the magic function %%black
. Here are the steps to enable black in jupyter:
pip install blackcellmagic
%load_ext blackcellmagic
%%black
magic function in the cells that you want to formatMaybe you can make a video describing the above steps.
https://calmcode.io/mkdocs/material-mkdocs.html
logo:
icon: cloud
now needs to be:
icon:
logo: material/cloud
or this error is generated:
mkdocs AttributeError: 'dict' object has no attribute 'split'
Thanks for the series.
https://calmcode.io/pytest/coverage.html
pip install python-cov gives the following error: 'No matching distribution found for python-cov'.
Most people that have experienced this before will just add a version to the pip install. But for people that have not you could add a comment asking them to specify the version.
E.g.
Pip install pytest-cov==2.10.0
Hey @koaning,
First of all thank you for making calmcode - I really like the videos and selection of tools presented :)
The idea
You present number of tools and show video-tutorials how to use them, starting from scratch. I think that it might be also valuable to show working example of few libs put together in some mini-project. Such project should be about some particular topic or solve some problem.
I have in mind one particular idea: Generator of the images that looks like Piet Mondrian's abstract paintings.
Example paintings: one and two. Many more examples here.
Why I think it's interesting?
There are few arguments:
Please let me know what do you think about it?
Best,
Kamil
There is still some manual labor involved. This is fine, but we need to add some unit tests to prevent issues like this one.
It may be possible to add with pygments.
First of all big congrats on the content there. I didn't know any of your sites, but you pointed me to this one on a PR I opened on whatlies and I binge watched some of the content.
I know, not very calm.
But the format resonated with me. And the list of available tools too.
One tool that I feel could be in the natural progression of flake8, black, pre-commit etc... is IMHO mypy
.
Ideas for chapters:
the problem
code.py
. You could include something like this
def hello(name, adjective = None):
return f"Hello {adjective} {name}"
def hello(name: str, adjective: str = None) -> str:
return f"Hello {adjective} {name}"
error: Argument 2 of "hello" has incompatible type "Optional[str]"; expected "str"
which you could fix with
def hello(name: str, adjective: str = "") -> str:
return f"Hello {adjective} {name}"
mypy code.py
# type: ignore
; mypy.ini
[mypy]
ignore_missing_imports = True
Other things maybe worth mentioning:
error: Too many arguments for ...
There's a hiccup here at 20-30s.
Hello,
This project seems really helpful, however I cannot play nor see any of the videos from the website. I tried disabling all my addons and set Firefox to accept coockies but the problem persists as seen bellow:
I inspected the element of the warning and notice your videos are being provided by vimeo and as such I tried to just copy and paste the direct link to the vimeo video but the above message still persists.
This is strange because I tested others sites with embedded vimeo videos and they work all fine, even with all my addons enabled and strick cookies policy.
I'm using Fedora 32 with Firefox v.79.
Thank you for your time.
First, thanks for the awesome content that you are creating. I love it.
I just watched the cvxpy videos and I think that adding some references or some follow-up books in the notes could be helpful for people that want to learn more about it.
Cheers.
Hello, great work on the whole calmcode.io.
I have a minor suggestion/question about https://calmcode.io/comprehensions/zip.html.
In the first part of the video shown here:
Instead of using a list comprehension:
[(k,v) for k,v in d.items()]
you could do:
list(d.items())
In my opinion it is more succinct and expressive, and also it is a bit faster on tests i did:
This is a question rather than an issue. I'm interested to hear what you use to write annotations on the screen.
Hi ! Is it possible to have some kind of introduction to using docker in a less intimidating manner. I've been stuck at trying to understand it in the simplest form for me to be able to use it intuitively.
Thanks
Hello koaning, thanks again for all great content you are making available to everyone.
I am not sure if this is appropriate or not, to make questions or start a debate, if not, please delete the issue.
In the Predict video for sklearn prep series, you discussed how QuantileTransformer can aid and help your models in defining better frontiers of classification. Illustrate by:
However, in your video about artificial stupidity, you brought an interesting point: algorithms such as classifiers build inference engine in regions where there is no data at all. Is not the same logic applied here when you make this transformation? You are changing the shape of your classifier decision boundary in way that it makes inference outside data scope, because I could have situation below:
(Imagine blue dots are purple ones, sorry about that...)
Does the question make sense?
in the https://calmcode.io/pre-commit/installation.html, Pre-commit is linked to: https://github.com/google/gin-config, which imo should be linked to https://github.com/pre-commit/pre-commit, please check.
Below is the screenshot with the link underlined in red.
I really love the short and concise tutorials that you have put up. The tutorials are brilliant. Just enough information to get started with the tool and then it is upto us on how to use it further. Thank you so much.
I have been following you on twitter. Also, thismonth.rocks is another great project that has helped me come up with my own list of small projects that I can do on my own.
Thanks. Please keep making the tutorials. :)
Very cool project! I have been recommending this to people a lot and used it myself as well, thanks!
I think it could be nice to reorder the skills a bit? Even within categories some are more 'I just started working in Python' (e.g. args kwargs, comprehensions) and others are more advanced (gin, FastAPI). I noticed because scikit dummy is before scikit learn.
Hi Vincent,
In the "logging" course, section "format":
In the job.py code
ticker should be ticket (in the jinja)
In the fetch.py code
reutrn should be return
Kind regards,
Peter
That should make copy/paste easier.
https://calmcode.io/pre-commit/how-it-works.html
need to edit the video, last sentences get repeated twice (with different endings)
https://calmcode.io/gin/intro-to-gin.html
def simulate(n_samples)
missing : at end of function declaration
if name = main:
forgot to put main in quotation marks in the code example below
config.gin not within quotation marks
same for https://calmcode.io/gin/required-settings.html
https://calmcode.io/gin/blacklist.html
code example has no default value for argument n_samples
def simulate(random_func, n_samples):
@gin.configurable(blacklist=[n_samples])
n_samples not in quotation marks
neither is main
same remarks for
https://calmcode.io/gin/external-configurations.html
Hi,
I had some trouble getting gitlab-ci to work with the .yml file.
Source: https://github.com/koaning/blackjack/blob/master/gitlab-ci.yml
Fix:
Add quotation marks around python:3.6
image: "python:3.6"
I got a nasty error when pulling up the docker image:
docker Error response from daemon: pull access denied for python3.6, repository does not exist or may require 'docker login'.
Adding the quotation marks resolved the error and ran the test smoothly.
I assume https://calmcode.io/pandas-pipe/seperation.html should be separation, not seperation.
The newsletter is quite handy to get the update!
In Ansync One you can remove the r
variable. Flake 8 and the other Python linters go crazy about it saying r
is declared but never used blah, blah, blah. Below is the re-write so the linters calm the freak down.
# -*- coding: utf-8 -*-
import asyncio
import time
from fastapi import FastAPI
from pydantic import BaseModel, validator
...
# Here's the re-write for the async portion
@app.get("/sleep_slow")
def sleep_slow():
time.sleep(1)
return {"status": "done"}
@app.get("/sleep_fast")
async def sleep_fast():
await asyncio.sleep(1)
return {"status": "done"}
In https://calmcode.io/method-chains/keep.html, there's this piece of code:
Clumper(poke_dict).keep(lambda d: 'Grass' in d['type']
I think it should be
Clumper(poke_dict).keep(lambda d: 'Grass' in d['type'])
Very neat topic by the way :)
The picture you drew implied that Slack threads run inside of a channel, each in their own self-contained space and all publically available.
However this article from Verge (https://www.theverge.com/2017/1/18/14305528/slack-threads-threaded-messages) implies that the threads run parallel to (not "inside") a channel and are not publically available.
Perhaps you can create a short demo showing an actual worked environment inside of a Slack workspace.
This is a way for me to measure if this is a feature folks really need. The upvotes can serve as a proxy.
I felt watching few videos was so much helpful for my work, I wished there was an upvote/like for topics.
Love the tutorials, super easy to understand and straight to the point!
One small thing I'd like to see would be a "Next video" button in a fixed position or some other way to "bingewatch" a single topic.
Let's fix the thin black line in the video here
Mandatory
is spelled wrong here
Don't forget to add a link (or a screenshot) of what needs a-fixin.
Voice hiccup, needs re-edit.
On the "how it works" video, on min 3:29 aprox there is a "mistake" on what you say, and probably missed editing it out.
Hi,
Me again, I was looking at the args / kwargs video’s when I noticed that the following;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.