« first day (2787 days earlier)      last day (2386 days later) » 
00:00 - 23:0023:00 - 00:00

00:15
Rhubarb all :)
 
2 hours later…
01:46
Anyone here actively working with Machine Learning and using Python for it?
I use tensorflow on a daily basis, mostly the C++ api, but a bit of the python
What's up?
ah... I'm going through the tensor flow codelabs now
What exactly happens after training a model? For example, most tutorials online use sklearn to run an algorithm on data that is being read. This is what one tutorial had: knn = KNeighborsClassifier(); knn.fit(X_train, Y_train); But what now?
Now that the model is "trained," how do I use it to predict based on some input data? Do I have to run the training code every single time I want to predict something?
@chrisz How do you find the C++ API, out of curiosity?
01:52
Lol no sorry I meant like, do you find it reasonable to work with? I've heard bad things.
Oh lol, my b. It has made me a much better programmer. Python is great, but I feel like I have a better understanding of the library using the C++ version.
@DemCodeLines at least with Tensorflow, "predicting" looks pretty much the same as training. You run your session, feed your input, and get your results. I personally have never used sklearn.
Most of the work I do is with a type of network called GANs, where the predictions of one of the networks is used to train the other network and vice versa.
Yeah, I imagine you'd have to get familiar with tensorflow internals.
Just to clarify, when you're saying "making predictions", your model is making predictions the entire time you are training it, they just may not be good predictions
Scikit is nice and easy to use, but for specific areas you might find some juicy R packages in CRAN that don't (yet) have a similar Python library.
02:11
@chrisz What does TensorFlow offer over using something like sklearn?
graph-based modelling and distributed processing, mainly. Very compatible with protobufs, and let's see... what else... a lot more support for deep learning.
And it is far more low level
So the main advantage is more computing power when training data and better graphical representations of that data?
nothing to do with computing power.
Explanation on the web hasn't been to helpful, which is why I asked
02:21
I'm not sure if sklearn can leverage GPU. If not, that's a pretty big performance difference.
no? qq forever
tensorflow uses backends that can work with GPUs, so yes.
You can build Scikit on top of Tensorflow even, see here. Scikit learn gives you a bunch of algorithms that you can use off the shelf across a bunch of domains in machine learning. Tensorflow gives you low level tools and GPU support, and is usually used for deep learning. It's not a question of "one or the other" in general, it depends on what you're trying to do.
hi guys. good morning from germany
good evening from texas
02:35
hi. I need some help in a dict comphrension issue. I dont know how can I solve my problem
can you help me
@madik_atma we have no idea if we can help you until you ask your question. Just ask the question and if someone can help, they will speak up
02:51
There don't seem to be too many practical examples of Machine Learning. A common example used in ML is spam-email detection. Somehow, there are a barely any tutorials on training a model and using it in a practical setting.
What do you mean practical setting? There are tons of examples
I found this for spam filtering:
It trains and predicts in one go. What if I'm running an actual email service? I can't do a training/predicting session every time a new email comes to the server, right?
Hello guys!
My initial thought was that you trained once and go some sort of output that you saved somewhere. Like some sort of trained file. Then you use that file in any other project where you need to predict something. I guess it's not like that.
03:01
It sounds like you need a hands-on kind of book to get an idea of how you would use machine learning. One I've heard good things about: Hands-On Machine Learning with Scikit-Learn and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Yeah, that maybe helpful. Mostly because all courses I've done so far are heavy theory and very little practical.
How can I create a list for values, if a key exists in a dict?
What values do you want to create a list of?
gesetz = {}

for first_childs in root:
    print(first_childs.tag, first_childs.text)
    gesetz[first_childs.tag] = first_childs.text

    if first_childs.tag in gesetz.keys():
        #make this: {exist_key: [value1, value2, value3]}
No need to do if key in dct.keys(), just use if key in dct
O(1) vs O(n)
03:12
ok sure
and how can i solve #make this?
what is exist_key
first_childs.tag in this case
so you want to change its value to a list if it exists?
gesetz[first_childs.tag] = [value1, value2, value3]
03:15
value is in this case first_childs.text
@chrisz dictionary views objects are set-like, so still O(1) in Python 3
hmm, TIL
gesetz[first_childs.tag] = first_childs.text
this overwrites the values
Yes, you said you wanted to change the value to a list
sry i mean i want to append the new values to a list
03:17
What do you want to happen to the current value?
i want to save all the values from the same key as a list
{key: [value1, 2, 3]}
If the value is already a list, you can just do gesetz[first_childs.tag].extend(first_childs.text)
rhubarb!
rhubarb'
the value is a str
03:20
At this point, you're better off just asking a question on main, you keep adding different requirements and I have no idea what any of these objects look like
cbg
cabbaghe
if key exists in dict make values to list, i think this is a very simple issue. you mean i should create a question at the main?
It is easy to add a value to a list, it is easy to add a value to a dictionary, it is not easy to give you a solution not knowing what the dictionary looks like, what the values you want to add look like, etc.
what license do you guys most commonly use for your github repos?
03:39
MIT
That's what I've chosen. But wondering if there are any good arguments for choosing something else.
If you want to keep all modifications open source
Choose something else
with MIT you aren't required to disclose source code improvements if you use it
04:01
I need a social intervention. Please let me know if I'm off base
@BCKN my apologies but I'm taken aback by the comment. This post contains all the necessary information to accomplish your task. I may not have presented it in a fashion that looks like a silver platter but that's because I expected you to lift from my answer what you needed. What bothers me is that you seem to expect that I put this on the platter you wanted. It may serve to remind you that everyone who posts answers on SO are volunteers who could very well be spending their time doing something else and not helping you. If I misunderstood you, please let me know. — piRSquared 38 secs ago
04:22
One more Q: If supervised ML works by improving the model based on human input, how exactly does that "improve based on input" part work? For example, in the case of a spam detector, if the prediction is wrong, how would the model know that and improve itself? Would you need to add that example and incrementally train the model with that example?
Hello..!! I am new to Python. Could you pls help me to solve the below question ?
You need to follow the criticism given through comment
04:43
Hi,is we have any free python hosting , i want host my Django application. i gooogled but just with advert results.
 
1 hour later…
05:46
@Mostafa you may be able to use more general hosting platforms such as Heroku (heroku does indeed have python support)
06:41
Sunday cbg
07:17
17 minutes of Sunday cbg for me... o/
@piRSquared MIT or Apache is recommended.
Ty @coldspeed
@Dayz I see that Jez has answered your question now, but in future please don't link your fresh questions here. See the room rules for details.
can't be bothered to answer questions today for some reason
07:30
lol! and gratz. I got my first gold badge from an answer the other day
ah the pivot one?
nice
yeah (-:
I'm not in the 90s anymore, I put a bounty on one of my questions to reward another answer
and laziness + slow day = no motivation to type :(
I'm stuck trying to figure out cookiecutter and debating if I should modify it for my own purposes. Aslo, this is super helpful pycon talk about packaging. youtube.com/watch?v=qOH-h-EKKac
Sometime late last year, I went hunting down all the old pivot questions and hammered them with your canon
07:35
@piRSquared BSD new
ty... more motivation than I had
BSD?
that's why your question earns so much passive rep. That, plus the fact that everyone conscientiously hammers dupes using it as a target
Berkeley license... meh
Oh
Aha! @shad0w_wa1k3r that is the one I was looking for... at least it is the one that got me thinking after I read this github.com/audreyr/cookiecutter-pypackage/blob/master/LICENSE
which is BSD, I didn't know that until just now.
07:38
@piRSquared It's the ~4th line in the README :-p
@shad0w_wa1k3r well if you were aiming at making me feel foolish, the jokes on you. I felt foolish before you got here d-:
@piRSquared It's really cool, specially for projects that require significant bootstrapping (e.g. Django projects)
Yeah, seems like it! I like to have my code in a src directory and probably a couple of other minor tweaks but that particular cookiecutter has a lot of stuff I wouldn't have thought of. I totally want to formalize one for work.
It's only meant for project templating though (so you have to customize later, not cookiecutter, but your project)
Also, if you are lucky, there might be different cookiecutter templates for the same thing, so you get to choose which one you want (or fork one for yourself and customize the template itself)
I can see making my own cookiecutter that I customize for my workflow and jump start any new project.
^^ yes exactly
08:06
@madik_atma You can't do this in a dict comprehension. Make gesetz a defaultdict(list), and then do gesetz[first_childs.tag].append(first_childs.text) in your for loop. BTW, it's better to use English for variable names, that makes your code easier to read for the international community.
@Aran-Fey Done
thanks
No worries. I get a bit nervous hammering stuff on my phone, in case I accidentally click the wrong target. :)
08:50
recbg
@AaronHall You need to explain in simple language the basic benefits before you delve into details, and stuff like MRO, diamond inheritance, Dependency Injection are advanced, and should come after the basic stuff. The basic reason to use super() is to not hardcode your class hierarchy. Allows you to rename or refactor the classes; allows you to insert a new class in-between. Makes code modular and future-proof, and debugging simpler ...
"Python linearizes a complicated inheritance tree via the C3 linearization algorithm to create a Method Resolution Order (MRO)." is too much detail. Suggest you have an Advanced section. Again, answer the basic question "What is diamond inheritance, MRO and do I care?" first. Most beginner users will not care and that's fine. They should be able to understand your answer without the advanced stuff.
@smci and super() is easier to write than MyLongOTherClassName:D
and if they're really advanced they know that diamond inheritance is only a thing to avoid :D
@AnttiHaapala Yes, really. Sell them on the basic benefits package before mentioning the rest. Information is like a Goldilocks quantity: too much is as bad as too little (for a different reason)...
09:20
ThorinSonOfThrainSonOfThrorKingUnderTheMountainAndOlderBrotherToFrerinAndDís
@smci Indeed! You don't want the reader to suffer from information overload. The information needs to be structured, with the basic stuff first. When you're new to a topic it can be hard to tell what info is essential and what stuff can be skimmed over and revisited once you have some expertise in the topic.
@PM2Ring Yeah I would explicitly preamble it like "Later on, advanced users using/designing a complicated class hierarchy will need to care about diamond inheritance, MRO, mixin classes. Beginner users don't care and can skip this"
@AaronHall The time-honored textbook example of a simple class hierarchy is Shape-Quadrilateral-Square, then you realize that you need Rectangle in between Quadrilateral and Square.
That's a big reason why SO Documentation failed: the info mostly lacked structure.
Similarly, it's hard to write good tutorial style answers on SO, it'd be a little better if we could link to sections in the answer, and fold sections containing advanced info, and stuff that's only relevant in obscure corner cases.
@PM2Ring Right in this case, I would very briefly simply define the concepts of MRO, diamond inheritance and mixin classes, and link to other SO answers and/or Python doc. No more.
 
2 hours later…
11:37
Anyone else think the number of upvotes on this question is suspiciously high? I can hardly even make sense of the question.
Probably just bias
I checked her older questions and none of them got as many upvotes as this one, so I guess I have no reason to mod flag
bins = pd.cut(count, bins=[0,3,7,15,31], labels=['1-3', '4-7','8-15', '>=16'])
what does it do actually?
12:09
@san have you read the documentation?
@coldspeed if I catch you again whining for upvotes, explicitly or implicitly, you're getting kicked. Rule of thumb: nobody cares about your upvotes nor your rep.
pretty strict, aren't you
@Aran-Fey upvotes on SO are sacred
documentation of?
@san pd.cut?
12:16
I understood it thanks for asking
> thanks for asking
I suppose English isn't your first language, in any case this is little funny
12:27
Yeah it isn't
13:06
Huh. Isn't changing weights exactly what training is?
I thought training is finding a pattern that relates input to the data and then refining it again and again until it runs out of training data
Well, I wouldn't know. I'm the opposite of a ML expert.
@DemCodeLines What you're describing sounds like backpropagation, which is the training method used in most neural nets. There are other training methods which, as you've said, would not be well described by 'adjust weights after each seens sample'.
I'm just a bit confused that if a model gets trained once and then performs poorly on real world data, would it be able to "adjust" itself?
Not automatically
estimating and training are unrelated steps
13:17
I'm pretty sure Aran's remark is correct
training is the act of tweaking your NN so that when you later pass it an input you accept the output as a prediction
But a lot of NN systems keep training the system with newer and newer data, so instead of training -> freezing -> predicting there's a constant feedback to the network in order to improve it in the long run, but this just means that they keep training the network. At least this is my limited understanding.
@DemCodeLines It really depends on the model you are using
Not every one is even adjusteable, in the sense of keeping the model and just changning it slightly with some new data
In the case of NNs, adjusting is possible, and it works by estimating a training sample -> comparing the prediction with the correct outcome -> backpropagating* the error, given the loss function
*this step adjusts the weights
@smci To me a square subclassing a quadrilateral wouldn't support Liskov substitutability. Maybe you could have an abstract four-sided figure, but a concrete quadrilateral could not have a square substitute for it, unless it was immutable, and changes that would result in a non-square would have to return a parent that supports the new shape. Bob Martin probably put it more elegantly, but "the relationship of the concepts is not the relationship of the classes."
@DemCodeLines Did I help, or just confuse more?
13:43
@smci That's not at the beginning of the answer, that's a response to a relevant comment. I answer the main question as simply and straightforwardly as I can there, in the first few lines of my answer. You think the answer needs an ELI5 section?
@Arne That helps. Take for example a spam email classifier. A pretty commonly-used example. We train it once on test data and build a model and then deploy it. It works great for some emails, it fails terribly for others. In that case, do we incrementally train that model on the failed data?
For example, when you hit "Not Spam" or "Mark as Spam" on your email, is the system retraining the model?
@DemCodeLines that would make sense to me.
For a spam filter, you would normally use a bayesian classifier or an svm. For those, you would retrain - but only once every other month, on data you have collected in that time and might clean/filter/reevaluate
Incrementally train the model, correct? We're not retraining the entire model all over again?
13:59
Depends on the model. You can't train an svm incrementally, that is what i was trying to say with 'not every model can be adjusted'
Oh ok, got it. Then what do you do if the model isn't accurate? Retrain all over again?
14:20
maybe add data, maybe change hyperparamters, maybe change features, maybe change which kind of data is trained on, then retrain
and keep the old model, in case the new one is worse
@DemCodeLines if a model isn't accurate, retraining isn't going to necessarily fix that. Your input data may be your problem, but there are a whole host of other issues that could be causing the inaccuracy.
There have been plenty of papers put out on spam detection in the last few years. Most popular used to be a Naive Bayes approach, but that has shifted greatly. You should be able to find a number of resources
@smci ok, simple approach: I wrote a really simple section that attempts to explain it as simply as possible. Simple. There, I said "simple" four five times.
cabbage
Anyone want to talk about deep learning/nlp/tensorflow ?

TensorFlow

i have created this chatroom so that we can talk about state o...
1
I mean yes
i have created this chatroom so that we can talk about state of art result in deep learning , New arxiv or other papers implementation and discussion, quick doubts in tensorflow , tricks , tips of tensorflow
15:30
weekend cabbage!
@AyodhyankitPaul Good idea! I'll encourage people with such questions to ask them in your room.
If you like, I can try moving the recent TF / ML messages here into your room.
@PM2Ring sure .
15:47
Give me a minute. I'm on my phone, so message moving's a bit slow.
1 message moved to TensorFlow
Actually, I'll let another RO do it. Doing it by phone will just be too messy.
16:12
I'm not sure about moving, that was a generic discussion about ML but this room is about tensorflow, apparently. What do you say, @DemCodeLines? ^
I ran pipenv update --outdated and I get this: Package 'radon' out–of–date: '==2.2.0' installed, '==2.2' available. aren't those versions the same?
@AndrasDeak I was asking more about ML and it's training
I'm mostly asking if you'd be comfortable moving that discussion to that room, but I understand if you think it wouldn't fit well there.
and it wasn't a very long discussion anyway, I don't think it causes much trouble if left here
@crypticツ what's weirder is that the pypi repo seems to have 2.2.0 pypi.org/project/radon
16:33
cbg
@AndrasDeak Fair enough.
How's your flu?
I mean how are you, I hope your flu isn't too well :P
My good deed for the day on SE.physics: I saw this question physics.stackexchange.com/questions/409695/… about the Lofstrom launch loop. Keith Lofstrom is a regular on xkcd, in fact he started the latest What-If thread, so I PMed him about the SE.Phyzics thread, and he responded.
nice :)
I'm feeling a little better ATM, but still not great.
16:41
:(
a regular on xkcd??
What does that mean?
@PM2Ring get well soon!
Keith's a pretty cool guy. His day job (before he retired) was in semiconductor / chip design, the space stuff is just a sideline, but he has enough credibility and engineering skill that he's respected in the field.
Cool. But. xkcd is a comic I thought? I'm confused
@Cosmo There's a forum associated with the xkcd comic. It was fantastic in the earlier days, but it's rather quiet these days. And it's no longer linked on the comic page.
Ah. Shame
16:53
It's now mostly a social space for the diehards, and a place to discuss the comics. But there's still some excellent info in the archives of the various subgroups, especially the coding and mathematics / science sections
neat
17:11
The xkcd forum was a big influence on me learning Python. And this comic was the final catalyst xkcd.com/353 :) And I learned about SO from a couple of the xkcd regulars who also happen to be Google employees.
18:10
bahahah
18:24
@AndrasDeak changed my Pipfile line from radon = "==2.2" to radon = ">=2.2" and now it's considered up to date. Still doesn't explain why it thinks exact version 2.2 is not the same as 2.2.0. Maybe I'm missing something in PEP 440, but it says this:
> All numeric components MAY be zero. Except as described below for the release segment, a numeric component of zero has no special significance aside from always being the lowest possible value in the version ordering.
18:35
This room was placed in timeout for 1 minute; This is the python room.
@ten5 please read the room rules and not ask blatantly off-topic questions here.
Andras is turning into davidism :/
Fun fact: helping people ignore the rules is not a healthy thing for the room
sorry, should've stopped a couple (of my) messages before
thanks!
> Ask about Python. Go to a relevant room to ask about other languages or topics, even if that room is less active.
that's as clear as it gets
18:38
I understand, we are on the same page
in the php room, I wont get this info though
Then you'll have to ask/read elsewhere
@Aran-Fey You put it in a negative way... IMO it's a good thing
@Aran-Fey at different times we all turn into someone else
not an easy info to get, how to do the actual practical programming, with this I can get a job
There are other sister sites on the network, some of which may be relevant. Then there's a lot of the internet that isn't affiliated with Stack Overflow Inc.
18:39
@vaultah self.update(deepcopy(xyz))
I need like a person to person info, like I said, something like paid tutor would be the best, but no $$$ at this point
it is just not explained anywhere, how to do things step by step, how things fall together as a whole
I am learning how to paint a restroom on the 100th floor of a building with my leg (because certain things are hard) without knowing how to do the foundation and the skeleton of the building first
I am learnign the paining of the decoration without knowing how to stand up a Christmas tree
and somebody has suggested, learn the "Christmas tree" first and the other things figure out as you go, even on a paid job, this is ok
thanks!
Not too proud of that, sorry, good three-letter-name people
18:56
Heh, and I was about to star that
 
2 hours later…
20:29
deleted, but you can still see it I trust ^.
20:50
recbg
cbg
21:43
How can I make timeit run some setup code before each iteration? The setup argument is only executed one time, apparently
>>> timeit('foo.remove(1)', setup='foo = [1]', number=10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/timeit.py", line 233, in timeit
    return Timer(stmt, setup, timer, globals).timeit(number)
  File "/usr/lib/python3.6/timeit.py", line 178, in timeit
    timing = self.inner(it, self.timer)
  File "<timeit-src>", line 6, in inner
ValueError: list.remove(x): x not in list
I'll just use time.time() - start_time instead...
@Aran-Fey You can't. You'd have to do it semi-manually, with a single "repetition ", and run the loop yourself, and accumulate the times yourself. So you might as well just use time.
Ok. Does it matter which timer I use? Is time.perf_counter() a good choice?
That is, time.perf_counter. Don't forget to disable garbage collection while timing.
@Aran-Fey no.
"No it doesn't matter" or "No it's not a good choice"?
21:53
use enough repetition and process_time... :D
Yeah, sorry, I'm on my phone and ended the previous message prematurely.
or the other clocks
well it depends ...
@Aran-Fey perf_counter will count wall-clock time... only more precisely
Ok, thanks. Why does timing have to be so difficult?
I guess it doesn't really matter... I'm expecting my code to outperform the other guy's code by miles
22:02
This is the source for timeit that you would have to change I believe
def inner(_it, _timer{init}):
    {setup}
    _t0 = _timer()
    for _i in _it:
        {stmt}
    _t1 = _timer()
    return _t1 - _t0
You could try fiddling with that to run the setup each time.
but he also wants to exclude the setup time
Yea, he would have to change how it times
summing up 10k inaccurate measurements vs making an inaccurate measurement of 10k times a quantity makes a huge difference
Hmm... turns out my code is waaaay slower even though it should have a much better time complexity...
time to increase the input size I guess...
A compromise might be running the setup n times and timing that total, and then subtracting that from the result of running the setup with execution n times. Would probably be less inaccurate than summing each individual iteration. Either way, not an ideal solution
22:09
Another option that I've sometimes used when the code consumes its data is to make a big list of copies of the data, which you index into. Of course that's not practical if the input data needs to be large.
I've cranked it up to 100000 elements and now both solutions are about equal
turns out it's pretty hard to beat C code with python code...
Well, yeah. ;)
Hmmm. I guess I've calculated the time complexity here wrong. Technically, del lst[lst.index(x)] is exactly O(n) and not O(2n) like I thought
if you want I can write crap C code that is easier to beat
Aren't O(n) and O(2n) the same thing?
Yes
22:13
In theory, yes. In reality, no.
Constants don't count
@Aran-Fey How does that even work?
C1*n vs C2*2*n, so the same order with a different exact prefactor?
del lst[lst.index(x)] is pathologically bad
if the runtime doesn't scale linearly with n then it's neither O(n) nor O(2*n)
What they said. But .index scans from the left, and then del has to shift the right side of the list down to fill the gap.
22:15
but it is still O(n) only. a linked list say would be O(n)
however if you're supposed to find it in the beginning, then that is going to be very expensive wrt something other
thne it would make sense to reverse the list and use rindex
voted no MCVE
Lots of options on that one :)
Do we have a good canonical for map in python 2 vs 3? I can find a lot for specific uses, but not a general one
@AndrasDeak I don't think it's correct to say that O(n) and O(2n) are the same thing; they're usually just simplified to O(n) because usually nobody cares
But this time, I care
What is the exact difference?
I'm not nitpicking for once, I think they are the exact same thing
@Aran-Fey for once Andras is correct, they're the same thing
O(n) means that if you take c*n size in input, the runtime becomes c times the runtime of n (asymptotically). So what does O(2n) mean?
iff
so given F(n) is n and G(n) is 2n
For sequences it's even simpler, right? Something like |f(n)| < c*|g(n)| for a finite c, or something
22:23
then F(n) = O(G(n)) as n -> Inf and G(n) = O(F(n)) as n -> Inf.
because lim sup F(n) / G(n) < Inf and lim sup G(n) / F(n) < Inf (as they're 0.5 and 2)...
and lazy to type it all...
Ok, you guys are right. But then what's the correct way to express that an algorithm iterates over the data 2 times, if it's not O(2n)?
@Aran-Fey what you're thinking is about the constant factors...
Yeah
let me find the wording somewhere...
hey guys
what's up today?
22:34
@AndrasDeak whoops, forgot some limmy details there...
@AndrasDeak Indeed. And Python lists add an extra complication, since the timings don't behave exactly linearly when you're modifying the list size because of how the resizing algorithm works.
hello!
@Aran-Fey I don't think that implies a difference in complexity compared to the algo that iterates over it once. If you suspect that the two algorithms are otherwise very similar, you may be able to compare the prefactors before the n
@AndrasDeak yea from some term onwards...
hey nick. How's ya day goin?
22:36
I still cannot find the wording anywhere.
yeah, I realized that I omitted some key details when I stepped outside to walk the dog
good!
could anyone answer that question please?
https://stackoverflow.com/questions/50667636/how-to-position-the-cursor-at-the-end-of-a-previous-line-in-python-3
@NickVen no, please read the room rules and don't post fresh questions here for answering.
where is that?
In the room's description (top right corner from a desktop browser) sopython.com/chatroom
22:38
sorry just got 20 rep... im new here
that is okay though. A few answers have already been provided.
You can try these answers.
yeah two of them where wrong and the other one i didn't understand it
And your question doesn't seem all that bad (though there are probably existing answers out there), so you'll probably get answers eventually. If you don't get a satisfactory answer in two days you're welcome to ask here. I added the generic [python] tag to your question, you should always use that along with optional version tags
i commented asking for an example... still waiting
ok thank you
Would it be better if you can provide an image as well? It does't have to be exact.
22:41
i tried but i don't know how
@NickVen I don't think you'll get an answer. You'll have to relax your restrictions a bit.
"it won't work [this way]" is also an answer I guess
well yeah but it can't be imposoble right? python is a pretty strong language
*impossible
we'll see ;)
It is probably something to do with powershell.
Furthermore, to make your question clearer, can you please post a picture of what you want your cursor to be at in your python 3 program? No matter why your question got one downvote.
22:45
how do i do that?
nevermind i found it
As of now the answers don't seem right. Because they might be incorrect, they are also vulnerable to downvotes. Also keep in mind that answering a downvoted queston can result in your answer being downvoted too.
Thanks. You can post your answer.
@NickVen I'm curious if some code I wrote which does cursor repositioning in Linux works with colorama. If it does, you may be able to adapt it.
@Mulliganaceous For what it's worth I don't think downvotes on answers should be the concern of askers
22:49
i have a dislocation of my shoulder, it's difficult to write with one hand...
:'(
How bad is it>
Hope you will get well soon!
probably 3 weeks with one hand. i won't stand it haha
Dominant side?
unfortunately...
just played a little in the outside world. stay inside, it's safer. :D
It is okay though.
What do you do outside of stack overflow?
i added 2 pics i hope that'll result in better answers
thanks foor the help
Sure. I am also trying to ask a question but I have only two upvoted dupes
i'm a dev :p it's gonna be hard
@NickVen I've got an idea, but cannot test it as I don't have windows.
22:55
ok
what is it?
@PM2Ring tried your code, unfortunately it doesn't work on win
Should these discussions be moved to the question?
no, I know better: rhubarb :D
lol
that's true
so what do you discuss here usually?
@NickVen can you try this:
from ctypes import windll
ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004
hconsole = windll.kernel32.GetStdHandle(-11)
windll.kernel32.SetConsoleMode(hconsole, ENABLE_VIRTUAL_TERMINAL_PROCESSING)
print('\033[1;34mHello world\033[0m')
00:00 - 23:0023:00 - 00:00

« first day (2787 days earlier)      last day (2386 days later) »