instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
mroberge__hydrofunctions-61
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hydrofunctions/charts.py:flow_duration", "hydrofunctions/charts.py:cycleplot" ], "edited_modules": [ "hydrofunctions/charts.py:flow_duration", "hydrofunctions/charts....
mroberge/hydrofunctions
bf1f296f4a2e31a0df9bd07860bbfa90e71e7890
Add ability to modify the legend and titles * HydroFunctions version: 0.1.8dev * Python version: 3.7 ### Description Hydrofunction's built-in charts should have the ability to set a title or create a legend. ### Potential Solutions: 1) add new parameters `legend` and `title` - `legend` default cou...
diff --git a/hydrofunctions/charts.py b/hydrofunctions/charts.py index 8e41052..aba1b8e 100644 --- a/hydrofunctions/charts.py +++ b/hydrofunctions/charts.py @@ -20,7 +20,7 @@ from matplotlib.ticker import NullFormatter import numpy as np -def flow_duration(Qdf, xscale='logit', yscale='log', ylabel='Stream Discharg...
mrocklin__sparse-67
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sparse/core.py:COO._elemwise" ], "edited_modules": [ "sparse/core.py:COO" ] }, "file": "sparse/core.py" } ]
mrocklin/sparse
9be8058708127553d543a61001843e7064f885b9
left-side np.scalar multiplication Hi, I noticed multiplication with `np.scalar` such as `np.float32` fails, ```python In [1]: import numpy as np ...: import sparse ...: x = sparse.random((2, 3, 4), density=0.5) ...: x * np.float32(2.0) # This succeeds ...: Out[1]: <COO: shape=(2, 3, 4), dtype...
diff --git a/sparse/core.py b/sparse/core.py index e455a9d..9a28145 100644 --- a/sparse/core.py +++ b/sparse/core.py @@ -1,7 +1,7 @@ from __future__ import absolute_import, division, print_function from collections import Iterable, defaultdict, deque -from functools import reduce +from functools import reduce, part...
mrocklin__sparse-70
[ { "changes": { "added_entities": [ "sparse/core.py:COO.__len__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "sparse/core.py:COO" ] }, "file": "sparse/core.py" } ]
mrocklin/sparse
49f64793c75f37cf137a3f86077135a22097ac0e
Minimum version of scipy I noticed that we need at least scipy=0.19. Can we update `requirements.txt` or work to support lower version of scipy?
diff --git a/requirements.txt b/requirements.txt index 6bad103..6e5129d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ numpy -scipy +scipy >= 0.19 diff --git a/sparse/core.py b/sparse/core.py index 9a28145..0c6dfa3 100644 --- a/sparse/core.py +++ b/sparse/core.py @@ -253,6 +253,29 @@ class COO(ob...
mscroggs__symfem-181
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null ...
mscroggs/symfem
0ee60db8756f3d0896799bdbf54b5287ddffc23e
Add as_tikz function to plots
diff --git a/.gitignore b/.gitignore index 312cbe4..fc6fbcd 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,4 @@ docs/_build joss/build.sh joss/paper.pdf -test/test-output-* - _temp/ diff --git a/setup.py b/setup.py index b13d703..ad8a0ef 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ if __name__ == ...
mscroggs__symfem-208
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "symfem/basis_functions.py:BasisFunction.integral" ], "edited_modules": [ "symfem/basis_functions.py:BasisFunction" ] }, "file": "symfem/basis_functions.py" }, { ...
mscroggs/symfem
43fbadd94cbb4698058997fd8cccb1f76ee42bd7
Fix rHCT element **Describe the bug** The rHCT element seems to be wrong once integrated. I noticed it when I tried to build the stiffness matrix for the Poisson equation using these elements. It is clear when one tries to integrate it using symfem or sympy. **To Reproduce** Minimal code to reproduce the behavior...
diff --git a/CHANGELOG_SINCE_LAST_VERSION.md b/CHANGELOG_SINCE_LAST_VERSION.md index ab4a35a..80efcc1 100644 --- a/CHANGELOG_SINCE_LAST_VERSION.md +++ b/CHANGELOG_SINCE_LAST_VERSION.md @@ -1,3 +1,4 @@ - Added enriched Galerkin element - Improved plotting - Added enriched vector Galerkin element +- Fixed bug in integ...
mscroggs__symfem-229
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "symfem/elements/bell.py:Bell.__init__" ], "edited_modules": [ "symfem/elements/bell.py:Bell" ] }, "file": "symfem/elements/bell.py" } ]
mscroggs/symfem
9c47d528ef4c1d08f9520ae0a8d946ced92bf0dd
Bell element is incorrect see https://github.com/mscroggs/defelement.com/issues/224
diff --git a/CHANGELOG_SINCE_LAST_VERSION.md b/CHANGELOG_SINCE_LAST_VERSION.md index 1ccf031..74e4f28 100644 --- a/CHANGELOG_SINCE_LAST_VERSION.md +++ b/CHANGELOG_SINCE_LAST_VERSION.md @@ -4,3 +4,4 @@ - Added Alfeld-Sorokina element - Corrected C1 and higher order C tests - Allow element creation on non-default refe...
msgpack__msgpack-python-105
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:Unpacker.__init__", "msgpack/fallback.py:Unpacker._read_header" ], "edited_modules": [ "msgpack/fallback.py:Unpacker" ] }, "file": "msgpack/...
msgpack/msgpack-python
c43fb48724049dc35c34fd389091e384dec46bb8
msgpack.loads hangs for a long time on invalid input Minimal reproducible example: ``` from msgpack import loads # ---------------------- Array 32 # | ----------- Large number # | | --- No other data # | | | # v v v s = "\xdd\xff\x00...
diff --git a/.travis.yml b/.travis.yml index b9d19c1..dad7e87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,13 @@ language: python python: - 2.7 +env: + - TOXENV=py26-c,py27-c + - TOXENV=py32-c,py33-c,py34-c + - TOXENV=py26-pure,py27-pure + - TOXENV=py32-pure,py33-pure,py34-pure + - TOXEN...
msgpack__msgpack-python-158
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "msgpack/_version.py" }, { "changes": { "added_entities": [ "msgpack/fallback.py:_check_type_strict" ], "added_modules": [ ...
msgpack/msgpack-python
c8513898e222a91ad7f6520aa8a4a5a1711cdc65
Serialization of namedtuples So I saw this referenced in the issue "Allow custom encoding (not character encoding but default function encoding) of unicode strings #73" and was wondering of there's a work around or any plans to implement a fix in the future. I'm using version 0.4.6 and as far as I can tell there's ...
diff --git a/.travis.yml b/.travis.yml index eced353..7695184 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,18 @@ sudo: false -cache: - directories: - - $HOME/.cache/pip +cache: pip language: python python: - - 3.5 + - 2.7 branches: only: - master env: - - TOXENV=py27-c,py33...
msgpack__msgpack-python-229
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:StringIO.write", "msgpack/fallback.py:Packer._pack" ], "edited_modules": [ "msgpack/fallback.py:StringIO", "msgpack/fallback.py:Packer" ] ...
msgpack/msgpack-python
a8d9162ca6cff6101c1f6b9547e94749c6acae96
can't serialize bytearray If value = bytearray(b'\x01\x87h\x05') then packb(value, use_bin_type=True) returns the error: can't serialize bytearray(b'\x01\x87h\x05') Is this a known problem?
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx index f24aa70..5a81709 100644 --- a/msgpack/_packer.pyx +++ b/msgpack/_packer.pyx @@ -10,6 +10,8 @@ from msgpack import ExtType cdef extern from "Python.h": int PyMemoryView_Check(object obj) + int PyByteArray_Check(object obj) + int PyByteArray_Check...
msgpack__msgpack-python-276
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:Unpacker.__init__", "msgpack/fallback.py:Unpacker._unpack", "msgpack/fallback.py:Packer.__init__" ], "edited_modules": [ "msgpack/fallback.py:Unpa...
msgpack/msgpack-python
d9ec8fc905fc9ed37c86700f794adeb883b4f5ea
[RFC] "raw_as_bytes" is bad name because "raw" is legacy name Since I had been inactive for months, I forgot new spec renamed "raw" type as "str". Naming new option as "raw_as_bytes" is bad idea. Luckily, I didn't release it yet. Let's rename the option name, but what name? It should be short and clear, and bas...
diff --git a/Makefile b/Makefile index 6a9906c..4030080 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,8 @@ serve-doc: all .PHONY: clean clean: rm -rf build - rm msgpack/*.so + rm -f msgpack/_packer.cpp + rm -f msgpack/_unpacker.cpp rm -rf msgpack/__pycache__ rm -rf test/__pycache__ diff --git a/README.rst...
msgpack__msgpack-python-334
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:Unpacker.__init__", "msgpack/fallback.py:Unpacker._unpack" ], "edited_modules": [ "msgpack/fallback.py:Unpacker" ] }, "file": "msgpack/fallb...
msgpack/msgpack-python
3c9c6edbc88908fceb3c69ff3d6455be8b5914c8
Option for restrict map keys While msgpack spec doesn't prohibit any map keys, some languages allows only str as map keys. So it's recommended for cross language compatibility. For packer, it is useful to detect (unexpected) bin keys. For unpacker, it is important to prevent "hashdos" attack too. * 0.6: Add `st...
diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx index a5403d8..2163425 100644 --- a/msgpack/_unpacker.pyx +++ b/msgpack/_unpacker.pyx @@ -27,6 +27,7 @@ cdef extern from "unpack.h": bint use_list bint raw bint has_pairs_hook # call object_hook with k-v pairs + bint strict_map...
msgpack__msgpack-python-386
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:Unpacker.__init__", "msgpack/fallback.py:Packer.__init__" ], "edited_modules": [ "msgpack/fallback.py:Unpacker", "msgpack/fallback.py:Packer" ...
msgpack/msgpack-python
de320488ae494b85a03b60dd33f91b650033d775
unpack should decode string types by default msgpack has native text and binary types, but the default behavior of `msgpack.unpackb` of the text type is to return the still-encoded bytes, rather than the decoded text (unicode on Python 2, str on Python 3). The msgpack spec [specifies](https://github.com/msgpack/msgpac...
diff --git a/README.rst b/README.rst index 82b6c02..f9f074f 100644 --- a/README.rst +++ b/README.rst @@ -37,36 +37,16 @@ Sadly, this doesn't work for upgrade install. After `pip install -U msgpack-pyt msgpack is removed and `import msgpack` fail. -Deprecating encoding option -^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Compati...
msgpack__msgpack-python-388
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:Unpacker.read_bytes" ], "edited_modules": [ "msgpack/fallback.py:Unpacker" ] }, "file": "msgpack/fallback.py" } ]
msgpack/msgpack-python
7a8ce0f9ca910a851b6835d26b1d6970a188fa4e
Broken fallback implementation of Unpacker.read_bytes ``` >>> from msgpack import * >>> u = Unpacker(); u.feed('x'); u.read_bytes(1) 'x' >>> u.next() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "msgpack/_unpacker.pyx", line 562, in msgpack._cmsgpack.Unpacker.__next__ File "...
diff --git a/msgpack/fallback.py b/msgpack/fallback.py index 388a5ab..85a711b 100644 --- a/msgpack/fallback.py +++ b/msgpack/fallback.py @@ -357,7 +357,9 @@ class Unpacker(object): return self._buffer[self._buff_i :] def read_bytes(self, n): - return self._read(n) + ret = self._read(n) + ...
msgpack__msgpack-python-427
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "msgpack/fallback.py:Unpacker.read_bytes", "msgpack/fallback.py:Unpacker._read", "msgpack/fallback.py:Unpacker._reserve" ], "edited_modules": [ "msgpack/fallback.py:Un...
msgpack/msgpack-python
b04690012d5d77cfe5074893686c4d55ec780300
tell() is incorrect after read_bytes() Using the default `._cmsgpack` implementation of an `Unpacker`, you will get the wrong answer if you call `tell()` after `read_bytes()`. Here's a simple repro: ``` import msgpack from io import BytesIO buf = BytesIO(b'my data') u = msgpack.Unpacker(buf) print(u.tell()) u....
diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx index 43c93a2..4340e04 100644 --- a/msgpack/_unpacker.pyx +++ b/msgpack/_unpacker.pyx @@ -484,8 +484,10 @@ cdef class Unpacker(object): nread = min(self.buf_tail - self.buf_head, nbytes) ret = PyBytes_FromStringAndSize(self.buf + self.buf_head...
msiemens__tinydb-46
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tinydb/database.py:Table.__init__", "tinydb/database.py:Table._read" ], "edited_modules": [ "tinydb/database.py:Table" ] }, "file": "tinydb/database.py" } ]
msiemens/tinydb
65c302427777434c3c01bf36eb83ab86e6323a5e
Can not handle data by integer eid The id of the element will change to a unicode string after JSON serialization/deserialization. This causes no way to get the element by integer eid. ```python Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "he...
diff --git a/tinydb/database.py b/tinydb/database.py index 31a7483..cdaad19 100644 --- a/tinydb/database.py +++ b/tinydb/database.py @@ -199,7 +199,7 @@ class Table(object): old_ids = self._read().keys() if old_ids: - self._last_id = max(int(i, 10) for i in old_ids) + self._las...
mtgjson__mtgjson-1148
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mtgjson5/classes/mtgjson_card.py:MtgjsonCardObject.__lt__" ], "edited_modules": [ "mtgjson5/classes/mtgjson_card.py:MtgjsonCardObject" ] }, "file": "mtgjson5/classes/mt...
mtgjson/mtgjson
141e2c73f005c0e8827584eb672f2a5a9abc2aa3
card lists with equal (or similar) collector numbers is not sorted following up from https://github.com/mtgjson/mtgjson/issues/1127 it seems like the card list of WCD sets gets unsorted depending on the card number -- i caught one as example but i think the numbering scheme of the whole sets might be confusing to whate...
diff --git a/mtgjson5/classes/mtgjson_card.py b/mtgjson5/classes/mtgjson_card.py index 2af2e93..bc31bc7 100644 --- a/mtgjson5/classes/mtgjson_card.py +++ b/mtgjson5/classes/mtgjson_card.py @@ -238,14 +238,16 @@ class MtgjsonCardObject: if self.number == other.number: return self_side < other_side ...
mtgjson__mtgjson-1228
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mtgjson5/providers/cardmarket/monolith.py:CardMarketProvider._get_card_market_data", "mtgjson5/providers/cardmarket/monolith.py:CardMarketProvider.generate_today_price_dict" ], "edit...
mtgjson/mtgjson
4df1afa057bf1fb3dec32dfe5cc2afc741885b75
Change Cardmarket price from 1-day Average to Price Trend I’d like to suggest replacing the current Cardmarket 1-day average price with the "Price Trend" metric. The Price Trend is the standard reference used by most EU players and traders, offering a more stable and accurate reflection of card values. Switching to the...
diff --git a/mtgjson5/providers/cardmarket/monolith.py b/mtgjson5/providers/cardmarket/monolith.py index 2b5d7ae..a54599a 100644 --- a/mtgjson5/providers/cardmarket/monolith.py +++ b/mtgjson5/providers/cardmarket/monolith.py @@ -78,10 +78,12 @@ class CardMarketProvider(AbstractProvider): for mkm_entry in data:...
mtgjson__mtgjson-469
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "mtgjson4/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mtgjson4/output...
mtgjson/mtgjson
b3d7bc4531bdca514dc1cf9f4ea5f6eac1104f89
Add Pioneer support Pioneer.json and PioneerCards.json
diff --git a/.travis.yml b/.travis.yml index 50bff20..7335254 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,4 @@ script: - PYTHONPATH=. pytest - black --check --diff . - pylint mtgjson4 tests - - mypy . - npx eclint check $(git ls-files) diff --git a/mtgjson4/__init__.py b/mtgjson4/__init__.py in...
mtgjson__mtgjson-470
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "mtgjson4/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mtgjson4/output...
mtgjson/mtgjson
b3d7bc4531bdca514dc1cf9f4ea5f6eac1104f89
Keyword is broken #2 The game continue ! #434 data seems broken after 38'th abilityWord
diff --git a/.travis.yml b/.travis.yml index 50bff20..7335254 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,4 @@ script: - PYTHONPATH=. pytest - black --check --diff . - pylint mtgjson4 tests - - mypy . - npx eclint check $(git ls-files) diff --git a/mtgjson4/__init__.py b/mtgjson4/__init__.py in...
munichpavel__clovek-ne-jezi-se-14
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "clovek_ne_jezi_se/agent.py:Player.roll", "clovek_ne_jezi_se/agent.py:Player._get_roll_value", "clovek_ne_jezi_se/agent.py:Player.roll_is_valid" ], "edited_modules": [ ...
munichpavel/clovek-ne-jezi-se
5c6ec835076b946987ce6c28390ee5414bc86659
Move dice roll from agent / player to game Not sure best place to have dice roll, but there is no reason to have it along with agent definitions.
diff --git a/clovek_ne_jezi_se/agent.py b/clovek_ne_jezi_se/agent.py index 715db04..49cd9ea 100644 --- a/clovek_ne_jezi_se/agent.py +++ b/clovek_ne_jezi_se/agent.py @@ -1,7 +1,7 @@ -from random import randint + import attr -from .consts import EMPTY_SYMBOL, NR_OF_DICE_FACES +from .consts import EMPTY_SYMBOL @at...
munichpavel__clovek-ne-jezi-se-15
[ { "changes": { "added_entities": [ "clovek_ne_jezi_se/game.py:Game._set_player_leave_waiting", "clovek_ne_jezi_se/game.py:Game.set_symbol_waiting_count", "clovek_ne_jezi_se/game.py:Game.set_symbol_space_array" ], "added_modules": null, "edited_entities": [ ...
munichpavel/clovek-ne-jezi-se
0f78ee7311764ced69ec63d05d7d2ca6aa0f47cc
Remove unused methods Like `Game.assign_to_space`
diff --git a/clovek_ne_jezi_se/game.py b/clovek_ne_jezi_se/game.py index ad7cb84..8dc6221 100644 --- a/clovek_ne_jezi_se/game.py +++ b/clovek_ne_jezi_se/game.py @@ -128,7 +128,6 @@ class Move: kind = attr.ib() roll = attr.ib(kw_only=True, default=None) start = attr.ib(kw_only=True, default=None, validato...
munichpavel__clovek-ne-jezi-se-33
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "clovek_ne_jezi_se/agents.py:HumanPlayer.choose_move" ], "edited_modules": [ "clovek_ne_jezi_se/agents.py:HumanPlayer" ] }, "file": "clovek_ne_jezi_se/agents.py" }, ...
munichpavel/clovek-ne-jezi-se
7e115382bc6b9b56d0173bc5a1645c4158ee84f3
Index error during game play My best guess is that the called `advance_edges` below is empty. Need some logic to return `None` in this case for `to_space`. Would be good to have play logging for situations like this, e.g. #16 ``` --------------------------------------------------------------------------- IndexErr...
diff --git a/clovek_ne_jezi_se/agents.py b/clovek_ne_jezi_se/agents.py index 33be7c5..8c011d8 100644 --- a/clovek_ne_jezi_se/agents.py +++ b/clovek_ne_jezi_se/agents.py @@ -32,5 +32,4 @@ class HumanPlayer(Player): chosen_move_idx = int(input('Enter chosen move index: ')) res = allowed_moves[chosen_m...
music-computing__amads-55
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "amads/algorithms/slice/salami.py:salami_slice" ], "edited_modules": [ "amads/algorithms/slice/salami.py:salami_slice" ] }, "file": "amads/algorithms/slice/salami.py" ...
music-computing/amads
43ecb0422928c0b8454b95041325ce9e87e617a9
Slice should inherit from Sequence Thanks @diwangislucky for the suggestion!
diff --git a/amads/algorithms/slice/salami.py b/amads/algorithms/slice/salami.py index 4827a23..ebb4401 100644 --- a/amads/algorithms/slice/salami.py +++ b/amads/algorithms/slice/salami.py @@ -194,10 +194,10 @@ def salami_slice( slices.append( Slice( - notes=notes, + ...
mutalyzer__hgvs-parser-9
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hgvsparser/to_model.py:add_token" ], "edited_modules": [ "hgvsparser/to_model.py:add_token" ] }, "file": "hgvsparser/to_model.py" } ]
mutalyzer/hgvs-parser
035ca562875b4e9b2402147a1260686d7c676407
0 vs 1 offsets I was surprised to find my locations shift -1. A parser shouldnt make any semantic changes probably.
diff --git a/hgvsparser/to_model.py b/hgvsparser/to_model.py index e243d36..e0f0564 100644 --- a/hgvsparser/to_model.py +++ b/hgvsparser/to_model.py @@ -114,7 +114,7 @@ def add_token(parent, token_type, token_value): if isinstance(parent, dict): if token_type == 'POSITION': if token_value != ...
mverleg__pyjson_tricks-67
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "json_tricks/encoders.py:pandas_encode" ], "edited_modules": [ "json_tricks/encoders.py:pandas_encode" ] }, "file": "json_tricks/encoders.py" } ]
mverleg/pyjson_tricks
7a309c9dfaf2a43987e5b580fbb30290e4d4f149
Pandas DeprecationWarning: .ix is deprecated
diff --git a/json_tricks/encoders.py b/json_tricks/encoders.py index 3082a8f..f6573da 100644 --- a/json_tricks/encoders.py +++ b/json_tricks/encoders.py @@ -316,7 +316,7 @@ def pandas_encode(obj, primitives=False): )) repr['index'] = tuple(obj.index.values) for k, name in enumerate(obj.columns.values): - re...
mvondracek__PA193_mnemonic_Slytherin-64
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pa193mnemonicslytherin/mnemoniccli.py:Config.init_parser", "pa193mnemonicslytherin/mnemoniccli.py:action_generate", "pa193mnemonicslytherin/mnemoniccli.py:action_recover", "pa193...
mvondracek/PA193_mnemonic_Slytherin
a23ee44909ca5f930478e0d7ead02b4bae6a0715
Report invalid UTF-8 sequence in input mnemonic as `EX_DATAERR = 65` ~~~ 'utf-8' codec can't decode byte 0xca in position 151: invalid continuation byte 'utf-8' codec can't decode byte 0xa5 in position 85: invalid start byte 'utf-8' codec can't decode byte 0x96 in position 89: invalid start byte 'utf-8' codec c...
diff --git a/pa193mnemonicslytherin/mnemoniccli.py b/pa193mnemonicslytherin/mnemoniccli.py index 4d27521..5774fa6 100644 --- a/pa193mnemonicslytherin/mnemoniccli.py +++ b/pa193mnemonicslytherin/mnemoniccli.py @@ -19,6 +19,7 @@ from binascii import unhexlify, hexlify, Error from enum import Enum, unique from pprint im...
mwaskom__seaborn-1483
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/basic.py:_BasicPlotter.add_legend_data" ], "edited_modules": [ "seaborn/basic.py:_BasicPlotter" ] }, "file": "seaborn/basic.py" } ]
mwaskom/seaborn
c0a6d850d29b7b8c0e3ecc8a14c76f11880fb9f9
Improve multiple semantic legend titles Currently the legends for lineplot (#1285) and scatterplot (#1436) don't indicate what variable each of the levels represent. I punted on this but it needs a solution. One option is to cram everything into the legend title but that's not ideal. I think doing something with legend...
diff --git a/seaborn/basic.py b/seaborn/basic.py index c2916077..868e4749 100644 --- a/seaborn/basic.py +++ b/seaborn/basic.py @@ -550,8 +550,10 @@ class _BasicPlotter(object): err = "`legend` must be 'brief', 'full', or False" raise ValueError(err) - keys = [] legend_kwargs ...
mwaskom__seaborn-1727
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/relational.py:_RelationalPlotter._semantic_type" ], "edited_modules": [ "seaborn/relational.py:_RelationalPlotter" ] }, "file": "seaborn/relational.py" } ]
mwaskom/seaborn
b9551aff1e2b020542a5fb610fec468b69b87c6e
Scatterplot with single-valued boolean column for Hue gives faded plot & bad legend Using a Boolean column for hue in a scatterplot gives a plot with faded points and a legend with the same color for True and False. ![image](https://user-images.githubusercontent.com/49426320/55934221-e9455780-5bfd-11e9-9de8-f7120ba0...
diff --git a/seaborn/relational.py b/seaborn/relational.py index 77bebe30..4a8741bd 100644 --- a/seaborn/relational.py +++ b/seaborn/relational.py @@ -530,7 +530,8 @@ class _RelationalPlotter(object): try: float_data = data.astype(np.float) values = np.unique(float_data.dr...
mwaskom__seaborn-1785
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/relational.py:_RelationalPlotter.parse_size" ], "edited_modules": [ "seaborn/relational.py:_RelationalPlotter" ] }, "file": "seaborn/relational.py" } ]
mwaskom/seaborn
b9551aff1e2b020542a5fb610fec468b69b87c6e
sizes parameter for scatterplot does not accept dict with more than 2 objets When trying to build a scatterplot with my data, I'd like to pass a dictionary to the sizes parameter, so that I can have the same legend from one graphic to another. If I write : ``` ax = sns.scatterplot(x="pourcents", y="sources", ...
diff --git a/seaborn/relational.py b/seaborn/relational.py index 77bebe30..02dd6e6b 100644 --- a/seaborn/relational.py +++ b/seaborn/relational.py @@ -428,6 +428,10 @@ class _RelationalPlotter(object): except TypeError: limits = None + # enforce numeric data to be ...
mwaskom__seaborn-2205
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:VectorPlotter._assign_variables_wideform", "seaborn/_core.py:VectorPlotter._assign_variables_longform" ], "edited_modules": [ "seaborn/_core.py:VectorPlotter...
mwaskom/seaborn
9d96d8f66c2171080794efdb591774cf05c6aa5e
longform value error should give the name of the semantic too e.g. ```python sns.lineplot(x="time") ``` raises > Could not interpret input 'time'` but something like > Could not interpret the argument for `x`: 'time' Would probably be more helpful...
diff --git a/seaborn/_core.py b/seaborn/_core.py index 9c59ab04..0bf7b3ff 100644 --- a/seaborn/_core.py +++ b/seaborn/_core.py @@ -708,10 +708,15 @@ class VectorPlotter: the inputs (or None when no name can be determined). """ - # TODO raise here if any kwarg values are not None, - ...
mwaskom__seaborn-2221
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:SizeMapping.categorical_mapping" ], "edited_modules": [ "seaborn/_core.py:SizeMapping" ] }, "file": "seaborn/_core.py" } ]
mwaskom/seaborn
ccd56351ce244b3a0268df8cb8090eb30f033e41
categorical sizes plot now has order reversed From the relational tutorial, on 0.11.0.dev0: ```python sns.relplot(x="time", y="firing_rate", hue="coherence", size="choice", palette=palette, kind="line", data=dots); ``` ![image](https://user-images.githubusercontent.com/315810...
diff --git a/seaborn/_core.py b/seaborn/_core.py index 9c2c90ae..cd4728e0 100644 --- a/seaborn/_core.py +++ b/seaborn/_core.py @@ -398,8 +398,11 @@ class SizeMapping(SemanticMapping): sizes = self.plotter._default_size_range # For categorical sizes, use regularly-spaced linear steps - ...
mwaskom__seaborn-2229
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:HueMapping.numeric_mapping" ], "edited_modules": [ "seaborn/_core.py:HueMapping" ] }, "file": "seaborn/_core.py" }, { "changes": { "added...
mwaskom/seaborn
eba6a57d67e056740c156dde1d26e12bbc7a8d75
Scatterplot fails with matplotlib==3.3.1 Matplotlib 3.3.1 has just been released and it breaks `scatterplot` (and `relplot(kind="scatter")`). The problem is the `marker=''` argument in the legend artists creation, which now raises an exception upon drawing (seems unintentional). See [https://github.com/matplotlib/matpl...
diff --git a/ci/deps_minimal.txt b/ci/deps_minimal.txt index 021ddef1..8fed0418 100644 --- a/ci/deps_minimal.txt +++ b/ci/deps_minimal.txt @@ -1,4 +1,4 @@ numpy scipy -matplotlib!=3.3.1 +matplotlib pandas diff --git a/doc/docstrings/lineplot.ipynb b/doc/docstrings/lineplot.ipynb index b4fc8a22..88a5bde9 100644 --- a...
mwaskom__seaborn-2273
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_bivariate_density" ], "edited_modules": [ "seaborn/distributions.py:_DistributionPlotter" ] }, "file": "seaborn/distr...
mwaskom/seaborn
607ded2cd65d98a93b09418b1523de71265f360d
Lineplot CI results differ between seaborn v0.10.1 and v0.11.0 when data includes NaN values I noticed that the lineplot CI results differ between seaborn `0.10.1` and `0.11.0` when data includes `NaN` values. Specifically, the CI results contain `NaN` values in the newer seaborn version. Reading through the release...
diff --git a/seaborn/distributions.py b/seaborn/distributions.py index d548c774..4fc79efc 100644 --- a/seaborn/distributions.py +++ b/seaborn/distributions.py @@ -1050,7 +1050,7 @@ class _DistributionPlotter(VectorPlotter): estimator = KDE(**estimate_kws) - if "hue" not in self.variables: + i...
mwaskom__seaborn-2368
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/axisgrid.py:PairGrid.__init__", "seaborn/axisgrid.py:PairGrid._map_diag_iter_hue", "seaborn/axisgrid.py:PairGrid._plot_bivariate_iter_hue" ], "edited_modules": [ ...
mwaskom/seaborn
2717408b564994002fe08f72ba2dd7e1acf359b6
map_* methods of PairGrid broken in 0.11.0 Hi, I discovered that the map_* methods of PairGrid seem to be broken in version 0.11.0 for user defined functions. See reproducible example below with a corrfunc defined to plot the pearson correlation value on the lower plots. The function doesn't seem to get evaluated in...
diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py index 04b243e7..7ab30cac 100644 --- a/seaborn/axisgrid.py +++ b/seaborn/axisgrid.py @@ -1207,11 +1207,19 @@ class PairGrid(Grid): # Sort out the hue variable self._hue_var = hue if hue is None: - self.hue_names = ["_nolegend_"]...
mwaskom__seaborn-2379
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:variable_type" ], "edited_modules": [ "seaborn/_core.py:variable_type" ] }, "file": "seaborn/_core.py" }, { "changes": { "added_entities"...
mwaskom/seaborn
ae123d79ed341d352d3f29b6936c044350b75e86
Categorical variable with numerical classes incorrectly plotted only on y axis Dear All, I think I may have found a bug in Seaborn categorical plotting functions. If a DataFrame column contains numbers, and it is explicitely converted to CategoricalDType, it will be correctly treated as categorical by functions s...
diff --git a/seaborn/_core.py b/seaborn/_core.py index cfd2a70d..0531ba63 100644 --- a/seaborn/_core.py +++ b/seaborn/_core.py @@ -1177,28 +1177,32 @@ class VectorPlotter: def variable_type(vector, boolean_type="numeric"): - """Determine whether a vector contains numeric, categorical, or dateime data. + """ ...
mwaskom__seaborn-2386
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:VectorPlotter._assign_variables_longform" ], "edited_modules": [ "seaborn/_core.py:VectorPlotter" ] }, "file": "seaborn/_core.py" } ]
mwaskom/seaborn
4fe84d4ff25276f0ef4ea2a18d0a31741547cb0f
scatterplot throws an error when referencing int column by name ## Summary `scatterplot` throws an error when trying to reference column by name if the column name is an int In seaborn 0.10 and lower, I was able to pass column names to `scatterplot` that were integers (e.g. `scatterplot(data=data, x=0, y=1)`). Aft...
diff --git a/doc/releases/v0.11.1.txt b/doc/releases/v0.11.1.txt index 0f9c2fb0..49f884b8 100644 --- a/doc/releases/v0.11.1.txt +++ b/doc/releases/v0.11.1.txt @@ -2,13 +2,15 @@ v0.11.1 (Unreleased) -------------------- +- |Fix| Restored support for using tuples or numeric keys to reference fields in a long-form `da...
mwaskom__seaborn-2417
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:VectorPlotter.comp_data" ], "edited_modules": [ "seaborn/_core.py:VectorPlotter" ] }, "file": "seaborn/_core.py" } ]
mwaskom/seaborn
aad96f8d2e36ceceb82a42b69aa3a8f47ef7210d
histplot with categorical values crashes with missing data, though numerical values work fine Not sure if this is intended behaviour, but it caught me out due to the difference in handling numerical/categorical data. I note that drawing histograms of categorical data is labelled as experimental, so ignore/close if that...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index dc9ade22..4163d56c 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -4,7 +4,9 @@ v0.12.0 (Unreleased) - |API| |Feature| |Enhancement| TODO (Flesh this out further). Increased flexibility of what can be shown by the internal...
mwaskom__seaborn-2458
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_rug" ], "edited_modules": [ "seaborn/distributions.py:_DistributionPlotter" ] }, "file": "seaborn/distributions.py" ...
mwaskom/seaborn
ba086c2096962bbffde2a8eb721b322f382f9e0e
rugplot fails with datetime data e.g. ```python sns.rugplot(x=np.arange("2015-01-01", "2020-01-01", dtype="datetime64[m]")) ``` ```python-traceback --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-i...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 1e688924..96944872 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -18,6 +18,8 @@ v0.12.0 (Unreleased) - |Fix| In :func:`lineplot, allowed the `dashes` keyword to set the style of a line without mapping a `style` variable ...
mwaskom__seaborn-2460
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter._artist_kws", "seaborn/distributions.py:_DistributionPlotter.plot_univariate_histogram", "seaborn/distributions.py:_DistributionPlotter.plot...
mwaskom/seaborn
136b462b30194f6579fd761d639118d0ceb66f55
unfilled kdeplot ignores alpha= It pulls `alpha` out of the kwargs and does some special handling for filled densities, but forgets to pass it back in in the unfilled case.
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 96944872..86415a74 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -20,6 +20,8 @@ v0.12.0 (Unreleased) - |Fix| In :func:`rugplot`, fixed a bug that prevented the use of datetime data (:pr:`2458`). +- |Fix| In :func:`hist...
mwaskom__seaborn-2462
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter._resolve_multiple", "seaborn/distributions.py:_DistributionPlotter.plot_univariate_histogram", "seaborn/distributions.py:_DistributionPlotte...
mwaskom/seaborn
d0acb8cd8308d66cb95795e2fdad99c4220403d8
histplot ignoring multiple= when hue argument is a numpy array or list e.g. ``` sns.histplot(x=tips["total_bill"], hue=tips["time"].to_numpy(), multiple="dodge") ``` It works fine when passing a pandas Series directly or referencing a column in an array.
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 82ab2a9a..6ae8da68 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -18,13 +18,17 @@ v0.12.0 (Unreleased) - |Enhancement| In :func:`histplot`, added `stat="percent"` as an option for normalization such that bar heights sum ...
mwaskom__seaborn-2468
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_bivariate_histogram" ], "edited_modules": [ "seaborn/distributions.py:_DistributionPlotter" ] }, "file": "seaborn/dis...
mwaskom/seaborn
beb7f822895375143de396659cb562465ade25d7
bivariate displot with kind="hist" ignores common_norm=False if hue is not assigned Somehow similar to #2377, but for `kind='hist'` and with `common_norm=False` being ignored. If I understand it well, passing `common_norm=False` to `sns.distplot` should produce plots with independent "z" scale. While this is the beh...
diff --git a/seaborn/distributions.py b/seaborn/distributions.py index 0b07d687..47f59cbf 100644 --- a/seaborn/distributions.py +++ b/seaborn/distributions.py @@ -737,7 +737,7 @@ class _DistributionPlotter(VectorPlotter): ) full_heights.append(sub_heights) - common_color_norm = "hue" ...
mwaskom__seaborn-2477
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_univariate_histogram" ], "edited_modules": [ "seaborn/distributions.py:_DistributionPlotter" ] }, "file": "seaborn/di...
mwaskom/seaborn
b1dc1bc336ca2aec8308915836ec0550397e856e
shrink parameter in histplot shifts data The smaller the value of the `shrink` parameter, the more the values in the histogram get shifted towards positive values. `import seaborn as sns` `import numpy as np` `r = np.random.random(100)` `sns.histplot(r);` `sns.histplot(r, shrink=0.5);` ![Screen Shot 2...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index fbbc2030..b506c8fd 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -28,6 +28,8 @@ v0.12.0 (Unreleased) - |Fix| In :func:`histplot` and :func:`kdeplot`, fixed a bug where the `multiple` was ignored when `hue` was provided a...
mwaskom__seaborn-2504
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_univariate_ecdf", "seaborn/distributions.py:_DistributionPlotter._plot_single_rug" ], "edited_modules": [ "seaborn/distribu...
mwaskom/seaborn
ba4bd0fa0a90b2bd00cb62c2b4a5e38013a73ac6
displot(kind='ecdf',..., log_scale=True) not working The following line of code gives an error: ``` sns.displot(kind='ecdf', data=df, x='col_1', log_scale=True) UserWarning: Data has no positive values, and therefore cannot be log-scaled. ``` My data is all positive and kind='hist' or 'kde' works just fine...
diff --git a/seaborn/distributions.py b/seaborn/distributions.py index b227a268..821926f1 100644 --- a/seaborn/distributions.py +++ b/seaborn/distributions.py @@ -57,8 +57,10 @@ multiple : {{"layer", "stack", "fill"}} """, log_scale=""" log_scale : bool or number, or pair of bools or numbers - Set a log s...
mwaskom__seaborn-2522
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_univariate_histogram" ], "edited_modules": [ "seaborn/distributions.py:_DistributionPlotter" ] }, "file": "seaborn/di...
mwaskom/seaborn
6d84f82b8edeb00963d74fa5e29b5c9fc3e7248c
histplot with small bins becames black by cluttering of rectangle edges when using x axis in log scale ### Description When increasing the number of values on a 1D histogram, the number of bins increase and they become smaller. In general, when that happens the rectangle edges disappear so that the distribution preser...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index b506c8fd..d552f874 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -30,6 +30,8 @@ v0.12.0 (Unreleased) - |Fix| In :func:`histplot`, fixed a bug where using `shrink` with non-discrete bins shifted bar positions inaccurately...
mwaskom__seaborn-2566
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/axisgrid.py:pairplot", "seaborn/axisgrid.py:jointplot" ], "edited_modules": [ "seaborn/axisgrid.py:pairplot", "seaborn/axisgrid.py:jointplot" ] }, ...
mwaskom/seaborn
5ce48afa4a426af749c9c9ad2130eccc6c05b32b
Supress Warnings in library Thanks for a great library. please suppress the warnings below. **Example :** `sns.pairplot(df_centroids, hue="CUST_ID_NEW",palette="bright", height=2, aspect=1)` seaborn version : 0.11.1 matplotlib:3.2.2 ``` /usr/local/lib/python3.7/dist-packages/seaborn/distributions.py:3...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index fba59d17..eee607ed 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -20,6 +20,8 @@ A paper describing seaborn was published in the `Journal of Open Source Software - |Enhancement| In :func:`histplot`, added `stat="percent"`...
mwaskom__seaborn-2577
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:VectorPlotter.comp_data" ], "edited_modules": [ "seaborn/_core.py:VectorPlotter" ] }, "file": "seaborn/_core.py" }, { "changes": { "added...
mwaskom/seaborn
3750373de40e2de9854dcfeb59debf5e9ebe3913
Multiple categorical function calls set categorical axis limits incorrectly This pertains to the "new" categorical behavior (i.e. the updates to `stripplot` and `swarmplot` post v0.11.1 release). ```python ax = sns.stripplot(x=["A", "B", "C"], y=[1, 3, 2]) ax = sns.stripplot(x=["E", "F"], y=[5, 2]) ax.set_xlim(-....
diff --git a/seaborn/_core.py b/seaborn/_core.py index c901998f..2c948393 100644 --- a/seaborn/_core.py +++ b/seaborn/_core.py @@ -1086,6 +1086,7 @@ class VectorPlotter: .copy(deep=False) .drop(["x", "y"], axis=1, errors="ignore") ) + for var in "yx": ...
mwaskom__seaborn-2623
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:displot" ], "edited_modules": [ "seaborn/distributions.py:displot" ] }, "file": "seaborn/distributions.py" }, { "changes": { "add...
mwaskom/seaborn
9c3dba6eb0193552123eaa14fac1a90974fa24f9
`FacetGrid` data no longer contains all columns from original input dataframe After recently upgrading from seaborn 0.9.1 to 0.11.1, I noticed that after using `relplot` on a dataframe, the returned `FacetGrid` object only contains a transformed dataframe which makes `FacetGrid.facet_data()` return a lot less useful fo...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index bd4bc7ce..c3ff1fbe 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -32,7 +32,7 @@ A paper describing seaborn was published in the `Journal of Open Source Software - |Feature| Added a ``refline`` method to :class:`FacetGrid...
mwaskom__seaborn-2640
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/distributions.py:_DistributionPlotter.plot_bivariate_histogram" ], "edited_modules": [ "seaborn/distributions.py:_DistributionPlotter" ] }, "file": "seaborn/dis...
mwaskom/seaborn
bfb7a046183647b145ad69600901dded26aa8292
Bivariate displot and various bin size does not work in 2D ~~~python sns.__version__, matplotlib.__version__ ('0.11.1', '3.4.2') ~~~ This works ~~~python import seaborn as sns titanic = sns.load_dataset("titanic") sns.displot( data=titanic, x="age", y='fare', col="survived", com...
diff --git a/doc/releases/v0.11.2.txt b/doc/releases/v0.11.2.txt index 37318252..3c4ae495 100644 --- a/doc/releases/v0.11.2.txt +++ b/doc/releases/v0.11.2.txt @@ -36,6 +36,8 @@ This is a minor release that addresses issues in the v0.11 series and adds a sma - |Fix| In :func:`displot`, the default alpha value now adj...
mwaskom__seaborn-2776
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core.py:VectorPlotter.comp_data" ], "edited_modules": [ "seaborn/_core.py:VectorPlotter" ] }, "file": "seaborn/_core.py" } ]
mwaskom/seaborn
bfbd6ad5b9717db42e302177d867b4a273df162b
Performance regression with duplicate index 0.11.1->0.11.2 I am using `histplot` for plotting simple histogram plots for medium sized data-sizes. I was using `histplot` for histogram determinations in my dataset using 0.11.1 and all worked very nicely and fast. Then upon upgrading to 0.11.2 it suddenly never fini...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 8f843771..7e9250ba 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -16,6 +16,8 @@ A paper describing seaborn was published in the `Journal of Open Source Software - In :func:`swarmplot`, the proportion of points that mus...
mwaskom__seaborn-2814
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core/plot.py:Plotter._setup_split_generator" ], "edited_modules": [ "seaborn/_core/plot.py:Plotter" ] }, "file": "seaborn/_core/plot.py" }, { "changes"...
mwaskom/seaborn
34b887325ca01033d39698c18a1d14941ef574f0
seaborn violinplot does not work right for 'inner=points' and 'inner=box' options When plotting a violinplot I can't get the inner='points' and inner='box' options work for the left part (Hue='Before'). ![points](https://user-images.githubusercontent.com/6062179/153753897-3c4e36b3-149e-4d6b-80d5-7ab7897e5100.png) ![...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 8c4d37b7..1ce2c782 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -57,10 +57,13 @@ Other updates - |Fix| Fixed two edgecases in :func:`histplot` when only `binwidth` was provided (:pr:`2813'). -- |Fix| FacetGrid subplot...
mwaskom__seaborn-2839
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core/plot.py:Plot.add", "seaborn/_core/plot.py:Plotter._plot_layer" ], "edited_modules": [ "seaborn/_core/plot.py:Layer", "seaborn/_core/plot.py:Plot", ...
mwaskom/seaborn
627c6c274a9a3acbca2911411a53299d963e354b
next gen version (0.12.0a1) bug: StopIteration when doing relplot with kind='box' version: 0.12.0a1 The following code will produce StopIteration error, but works fine in stable version (e.g., 0.11.2) ```python import seaborn as sns import pandas as pd tips = sns.load_dataset('tips') sns.catplot(data=tips, y='t...
diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py index 56d933cb..2469df00 100644 --- a/seaborn/_core/plot.py +++ b/seaborn/_core/plot.py @@ -55,6 +55,7 @@ class Layer(TypedDict, total=False): source: DataSource vars: dict[str, VariableSpec] orient: str + legend: bool class FacetSpec(Typ...
mwaskom__seaborn-2845
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_oldcore.py:HueMapping.__init__" ], "edited_modules": [ "seaborn/_oldcore.py:HueMapping" ] }, "file": "seaborn/_oldcore.py" }, { "changes": { "add...
mwaskom/seaborn
de1ecf0e0d0064982ebf4f13e1b1afddd27c80ff
Two bugs in catplot with kind="swarm" ```python sns.catplot( tips, x="day", y="total_bill", col="time", height=3, kind="swarm", ) ``` ![image](https://user-images.githubusercontent.com/315810/172026311-3a8af1bf-3bec-4d79-b1b2-0f114800d81a.png) Issues: - A palette is mapped to the x variable (`catplot`...
diff --git a/seaborn/_oldcore.py b/seaborn/_oldcore.py index b23fd9fb..c9218c1f 100644 --- a/seaborn/_oldcore.py +++ b/seaborn/_oldcore.py @@ -93,7 +93,11 @@ class HueMapping(SemanticMapping): data = plotter.plot_data.get("hue", pd.Series(dtype=float)) - if data.notna().any(): + if data.isna(...
mwaskom__seaborn-2860
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/categorical.py:_BarPlotter.__init__", "seaborn/categorical.py:barplot", "seaborn/categorical.py:countplot" ], "edited_modules": [ "seaborn/categorical.py:_Bar...
mwaskom/seaborn
a48dc8f4df8d81ff8b50bdf26b6c094333f6ea8d
Barplot - cannot override width **Version:** 0.11.1 **OS:** Ubuntu **Description:** When calling `barplot(..., width=width)` a `TypeError` is raised from `matplotlib`: `TypeError: bar() got multiple values for argument 'width'` I think `barplot()` should either: - raise before reaching `matplotlib` expla...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 77b3b5b6..4711ecaa 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -51,6 +51,8 @@ Other updates - |Enhancement| Example datasets are now stored in an OS-specific cache location (as determined by `appdirs`) rather than in t...
mwaskom__seaborn-2863
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/axisgrid.py:jointplot" ], "edited_modules": [ "seaborn/axisgrid.py:jointplot" ] }, "file": "seaborn/axisgrid.py" }, { "changes": { "added_entities...
mwaskom/seaborn
a48dc8f4df8d81ff8b50bdf26b6c094333f6ea8d
jointplot doesn't warn for ax= argument in seaborn 11.2 In seaborn 11.2, figure-level functions such as `catplot`, 'relplot', `displot` and `pairplot` issue a warning when an `ax=` parameter is passed: ``` UserWarning: catplot is a figure-level function and does not accept target axes. You may wish to try stripplot ...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index 77b3b5b6..6beda839 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -51,6 +51,8 @@ Other updates - |Enhancement| Example datasets are now stored in an OS-specific cache location (as determined by `appdirs`) rather than in t...
mwaskom__seaborn-2896
[ { "changes": { "added_entities": [ "seaborn/_marks/area.py:AreaBase._postprocess_artist", "seaborn/_marks/area.py:Area._postprocess_artist" ], "added_modules": null, "edited_entities": [ "seaborn/_marks/area.py:AreaBase._plot", "seaborn/_marks/area.py:Area...
mwaskom/seaborn
3c8447fc92e73b353202bacefc007784460b225e
Use extent clipping (and sticky edges) for Area mark Give the `Area` mark the same behavior as we added to `Bar` in #2889
diff --git a/doc/introduction.ipynb b/doc/introduction.ipynb index 3fca871f..e6b32738 100644 --- a/doc/introduction.ipynb +++ b/doc/introduction.ipynb @@ -400,7 +400,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "When you're ready to share or publish your work, you'll probably want to polish the...
mwaskom__seaborn-2898
[ { "changes": { "added_entities": [ "seaborn/_core/plot.py:Plot.limit", "seaborn/_core/plot.py:Plotter._finalize_figure" ], "added_modules": null, "edited_entities": [ "seaborn/_core/plot.py:Plot.__init__", "seaborn/_core/plot.py:Plot.plot", "seabor...
mwaskom/seaborn
3c8447fc92e73b353202bacefc007784460b225e
No easy way to set axis limits This is a blocker for release. Options: - Use `norm` in the scale object (bleh) - Have `Plot.limit` that works for any variable, working with the scale (interaction with `norm` needs definition) - Another more general method (e.g. in `configure` that accepts `limits: dict[variable...
diff --git a/doc/introduction.ipynb b/doc/introduction.ipynb index 3fca871f..e6b32738 100644 --- a/doc/introduction.ipynb +++ b/doc/introduction.ipynb @@ -400,7 +400,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "When you're ready to share or publish your work, you'll probably want to polish the...
mwaskom__seaborn-2915
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_compat.py:set_scale_obj" ], "edited_modules": [ "seaborn/_compat.py:set_scale_obj" ] }, "file": "seaborn/_compat.py" }, { "changes": { "added_ent...
mwaskom/seaborn
1524d4398d01a652c254d4c9d1c5c72a54a62d22
Unexpected behaviour of ticks in next gen Seaborn Hello, Just found a potential bug in the next gen version of **seaborn**. Expected behaviour: create a histogram with y-axis limits that go from 0 to 50. Actual behaviour: limits of y-axis do not change. Other possible reasons for this: I may be confused betwe...
diff --git a/doc/releases/v0.12.0.txt b/doc/releases/v0.12.0.txt index bbeba0df..3550ce5d 100644 --- a/doc/releases/v0.12.0.txt +++ b/doc/releases/v0.12.0.txt @@ -94,6 +94,8 @@ Other updates - |Fix| Improved robustness to numerical errors in :func:`kdeplot` (:pr:`2862`). +- |Defaults| The `patch.facecolor` rc para...
mwaskom__seaborn-3016
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/categorical.py:_PointPlotter.__init__", "seaborn/categorical.py:_PointPlotter.draw_points", "seaborn/categorical.py:pointplot" ], "edited_modules": [ "seaborn...
mwaskom/seaborn
54cab15bdacfaa05a88fbc5502a5b322d99f148e
`FacetGrid.map_dataframe` passes disallowed keyword arguments to `pointplot` My code that used to work perfectly fine with 0.11.0 breaks with the new 0.12.0 release. The code creates a FacetGrid and then applies `pointplot()` to each of the cells as follows: ```python ... g = sns.FacetGrid(df_fs, row="metric", col...
diff --git a/doc/whatsnew/v0.12.1.rst b/doc/whatsnew/v0.12.1.rst index 6ba57d5b..f1ed1bb8 100644 --- a/doc/whatsnew/v0.12.1.rst +++ b/doc/whatsnew/v0.12.1.rst @@ -12,10 +12,12 @@ v0.12.1 (Unreleased) - |Enhancement| Marks that sort along the orient axis (e.g. :class:`Line`) now use a stable algorithm (:pr:`3064`). ...
mwaskom__seaborn-3056
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_marks/area.py:Band._standardize_coordinate_parameters" ], "edited_modules": [ "seaborn/_marks/area.py:Band" ] }, "file": "seaborn/_marks/area.py" }, { ...
mwaskom/seaborn
5386adc5a482ef3d0aef958ebf37d39ce0b06b88
Consider having range mark derive min/max from data when not given Marks that are based on min/max (i.e. Range or Band) assume that `{var}min`/`{var}max` variables are present. (Currently they fail with a pretty unhelpful error if not present, which we should generally fix). If those variables are not present, should t...
diff --git a/doc/_docstrings/objects.Band.ipynb b/doc/_docstrings/objects.Band.ipynb index 5419a193..bcd19758 100644 --- a/doc/_docstrings/objects.Band.ipynb +++ b/doc/_docstrings/objects.Band.ipynb @@ -13,7 +13,7 @@ "source": [ "import seaborn.objects as so\n", "from seaborn import load_dataset\n", - ...
mwaskom__seaborn-3369
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_base.py:VectorPlotter.assign_variables", "seaborn/_base.py:VectorPlotter._assign_variables_longform" ], "edited_modules": [ "seaborn/_base.py:VectorPlotter" ] ...
mwaskom/seaborn
af613f1db95e2ebc02810a985723f7fab19ff01c
seaborn.object: `TypeError: `x` given by both name and position` raised by polars and not by pandas I am plotting a simple histogram from the result of a `.value_counts()`, so I just have two columns (see collapsible element) ``` ┌───────────────────────────────────┬────────┐ │ source ┆ ...
diff --git a/seaborn/_base.py b/seaborn/_base.py index 8b890252..a3861aed 100644 --- a/seaborn/_base.py +++ b/seaborn/_base.py @@ -11,14 +11,15 @@ import numpy as np import pandas as pd import matplotlib as mpl -from ._decorators import ( +from seaborn._core.data import PlotData +from seaborn._decorators import ( ...
mwaskom__seaborn-3440
[ { "changes": { "added_entities": [ "seaborn/_base.py:VectorPlotter._get_scale_transforms" ], "added_modules": null, "edited_entities": [ "seaborn/_base.py:VectorPlotter.iter_data", "seaborn/_base.py:VectorPlotter.comp_data", "seaborn/_base.py:VectorPlotter...
mwaskom/seaborn
23860365816440b050e9211e1c395a966de3c403
Categorical scatter plots on symlog-scaled axis Hi, On the current dev version (eb2b5a2) and matplotlib 3.7.1, consider the following code that uses `stripplot` to draw two points on unscaled and symlog-scaled yaxis: ```python import seaborn as sns import matplotlib.pyplot as plt x = [0.1,2] y = [0.1,5] fig,...
diff --git a/seaborn/_base.py b/seaborn/_base.py index 5fbb282c..8b890252 100644 --- a/seaborn/_base.py +++ b/seaborn/_base.py @@ -1025,9 +1025,7 @@ class VectorPlotter: ) # Reduce to the semantics used in this plot - grouping_vars = [ - var for var in grouping_vars if var in s...
mwaskom__seaborn-3451
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/relational.py:relplot" ], "edited_modules": [ "seaborn/relational.py:relplot" ] }, "file": "seaborn/relational.py" } ]
mwaskom/seaborn
3d3d715989d1a9cecc2b08fb23c695b6bb686754
`relplot` `kind='scatter'` incompatible with `units` keyword argument When calling `seaborn.relplot` with `kind='scatter' and passing a value for `units`, an error is raised: ```python import seaborn as sns from matplotlib import pyplot as plt sns.set_theme(style="ticks") dots = sns.load_dataset("dots") ...
diff --git a/seaborn/relational.py b/seaborn/relational.py index e0af083d..67a5d4d9 100644 --- a/seaborn/relational.py +++ b/seaborn/relational.py @@ -837,9 +837,15 @@ def relplot( kwargs.pop("ax") # Use the full dataset to map the semantics + variables = dict(x=x, y=y, hue=hue, size=size, style=styl...
mwaskom__seaborn-3452
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_base.py:HueMapping.__init__" ], "edited_modules": [ "seaborn/_base.py:HueMapping" ] }, "file": "seaborn/_base.py" } ]
mwaskom/seaborn
07711372d1b7bdd2dd30a1546bbcd1de55232165
Warning "passing `palette` without assigning `hue`" **Context** Seems related to https://github.com/mwaskom/seaborn/issues/2429, but [the associated gist](https://gist.github.com/mwaskom/9937c53eeb8b9794a450bf1f20b03e2f) didn't help. I aim to produce a `barplot` with the color varying on the continuous y-axis. It w...
diff --git a/seaborn/_base.py b/seaborn/_base.py index 6a1c6083..f27f544d 100644 --- a/seaborn/_base.py +++ b/seaborn/_base.py @@ -108,6 +108,15 @@ class HueMapping(SemanticMapping): data = plotter.plot_data.get("hue", pd.Series(dtype=float)) + if isinstance(palette, np.ndarray): + msg = ...
mwaskom__seaborn-3453
[ { "changes": { "added_entities": [ "seaborn/regression.py:_RegressionPlotter._check_statsmodels" ], "added_modules": null, "edited_entities": [ "seaborn/regression.py:_RegressionPlotter.fit_regression" ], "edited_modules": [ "seaborn/regression.py:_Reg...
mwaskom/seaborn
ce02525ef40f8291165d705343c7cda87981484a
`statsmodels` missing as a dependency A normal `residplot` on the `mpg` data with `lowess=True` doesn't currently work, because `statsmodels` doesn't exist as a dependency. This is with a fresh `pip install --upgrade seaborn`. ``` --------------------------------------------------------------------------- ModuleNotF...
diff --git a/seaborn/regression.py b/seaborn/regression.py index c6b81a17..5a16fc96 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -185,8 +185,18 @@ class _RegressionPlotter(_LinearPlotter): return vals, points, cis + def _check_statsmodels(self): + """Check whether statsmodels...
mwaskom__seaborn-3454
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/utils.py:move_legend" ], "edited_modules": [ "seaborn/utils.py:move_legend" ] }, "file": "seaborn/utils.py" } ]
mwaskom/seaborn
01fddcfa8724ff0e9aea475d9370051a0f5ef73c
Handle order in legend changes when labels are renamed Here is a minimal example. In the second and third example the legend handles are reversed, which I think is unwanted behaviour: ```python penguins = sns.load_dataset("penguins") ax = sns.histplot(data=penguins, x="flipper_length_mm", hue="species") ``` ![issu...
diff --git a/seaborn/utils.py b/seaborn/utils.py index c5acc5e2..7cc804a0 100644 --- a/seaborn/utils.py +++ b/seaborn/utils.py @@ -460,6 +460,13 @@ def move_legend(obj, loc, **kwargs): handles = get_legend_handles(old_legend) labels = [t.get_text() for t in old_legend.get_texts()] + # Handle the case whe...
mwaskom__seaborn-3458
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/_core/plot.py:Plotter._get_scale", "seaborn/_core/plot.py:Plotter._setup_scales", "seaborn/_core/plot.py:Plotter._finalize_figure" ], "edited_modules": [ "sea...
mwaskom/seaborn
082486d8505cee37416a855da65ff6349c7259e2
Scale has no effect for Pair plots in next-gen interface The `objects` interface looks great, in particular the ability to have combination pair and facet plots. However, I ran into a bug when attempting to log-scale an axis for a `pair`ed plot with `seaborn==0.12.0b2`. **Expected behavior** (no log-scaling where no...
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c25b01c..74efcb54 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,7 @@ jobs: build-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3....
mwaskom__seaborn-3467
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/heat_scatter.py" }, { "changes": { "added_entities": [ "seaborn/_base.py:VectorPlotter.add_legend_data", "seaborn/_base...
mwaskom/seaborn
e71d95b661a069e85473ad347773d35317611486
Legends don't represent additional visual properties This is a meta issue replacing the following (exhaustive) list of reports: - #2852 - #2005 - #1763 - #940 The basic issue is that artists in seaborn legends typically do not look exactly like artists in the plot in cases where additional matplotlib keyword a...
diff --git a/examples/heat_scatter.py b/examples/heat_scatter.py index a7df620c..a8e5ee47 100644 --- a/examples/heat_scatter.py +++ b/examples/heat_scatter.py @@ -6,7 +6,6 @@ _thumb: .5, .5 """ import seaborn as sns -from seaborn._compat import get_legend_handles sns.set_theme(style="whitegrid") # Load the brai...
mwaskom__seaborn-3540
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/categorical.py:catplot" ], "edited_modules": [ "seaborn/categorical.py:catplot" ] }, "file": "seaborn/categorical.py" } ]
mwaskom/seaborn
863539d71e281d88a93de64581827b166d9e2f22
catplot with redundant hue assignment creates empty legend with title ```python sns.catplot(tips, x="day", y="total_bill", hue="day", col="sex", row="smoker", kind="box", height=3) ``` ![image](https://github.com/mwaskom/seaborn/assets/315810/53b0af1e-e133-46bb-92bd-78c91db0221b) Set `legend=False` to workaround,...
diff --git a/seaborn/categorical.py b/seaborn/categorical.py index bb40d5d3..6b4d85da 100644 --- a/seaborn/categorical.py +++ b/seaborn/categorical.py @@ -409,12 +409,10 @@ class _CategoricalPlotter(VectorPlotter): data[col] = inv(data[col]) def _configure_legend(self, ax, func, common_kws=N...
mwaskom__seaborn-3547
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/categorical.py:catplot" ], "edited_modules": [ "seaborn/categorical.py:catplot" ] }, "file": "seaborn/categorical.py" } ]
mwaskom/seaborn
863539d71e281d88a93de64581827b166d9e2f22
[BUG] Edge color with `catplot` with `kind=bar` Hello, When passing `edgecolor` to catplot for a bar, the argument doesn't reach the underlying `p.plot_bars` to generate the required output. Currently there is a line `edgecolor = p._complement_color(kwargs.pop("edgecolor", default), color, p._hue_map)` is ...
diff --git a/seaborn/categorical.py b/seaborn/categorical.py index bb40d5d3..ee537975 100644 --- a/seaborn/categorical.py +++ b/seaborn/categorical.py @@ -2830,7 +2830,11 @@ def catplot( if saturation < 1: color = desaturate(color, saturation) - edgecolor = p._complement_color(kwargs.pop("edg...
mwaskom__seaborn-3605
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "seaborn/categorical.py:_CategoricalPlotter._dodge" ], "edited_modules": [ "seaborn/categorical.py:_CategoricalPlotter" ] }, "file": "seaborn/categorical.py" } ]
mwaskom/seaborn
1617be03dc8f6c2977dbb31714e3ea9029ea3c9a
Boxplot errors when `dodge=True` without `hue` Hello, I want to report a bug when using the latest version of Seaborn. I checked with 0.12.2 there was no error.The bug is: File "/mnt/c/Users/*****/Desktop/Gent_presentation_2023/1_Effect_of_Ti_addition/2-formation_energy/all_Tix_analysis/./boxplot.py", line 287, i...
diff --git a/seaborn/categorical.py b/seaborn/categorical.py index 2e12141a..ab9f9680 100644 --- a/seaborn/categorical.py +++ b/seaborn/categorical.py @@ -392,6 +392,11 @@ class _CategoricalPlotter(VectorPlotter): def _dodge(self, keys, data): """Apply a dodge transform to coordinates in place.""" + ...
mwclient__mwclient-289
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/basic_edit.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mwclient/clie...
mwclient/mwclient
cbf462f0f59a6a967b6d0d78d393d00fcc719883
Site.blocks() only returns a single block https://en.wikipedia.org/wiki/Special:Log?type=block&user=&page=MariaJaydHicky&wpdate=&tagfilter=&subtype= shows that User:MariaJaydHicky has had multiple blocks. But, the following code: ``` #!/usr/bin/env python ...
diff --git a/examples/basic_edit.py b/examples/basic_edit.py index 43c4b00..a486047 100644 --- a/examples/basic_edit.py +++ b/examples/basic_edit.py @@ -36,7 +36,7 @@ text1 = u"""== [[Test page]] == This is a [[test]] page generated by [http://mwclient.sourceforge.org/ mwclient]. This test is done using the [[w:mw:AP...
mwclient__mwclient-293
[ { "changes": { "added_entities": [ "mwclient/client.py:Site.patrol" ], "added_modules": null, "edited_entities": [ "mwclient/client.py:Site.raw_call" ], "edited_modules": [ "mwclient/client.py:Site" ] }, "file": "mwclient/client.py" } ]
mwclient/mwclient
984dd51ef4e0a350bfc86654dc44276d1410bc2c
Patrol function Hello, currently some function are commented out in the code : ``` # def block(self): TODO? # def unblock: TODO? # def patrol: TODO? # def import: TODO? ``` I am very interested in the patrol function, do you plan on adding it ? By the way, thanks for the library, it's really u...
diff --git a/mwclient/client.py b/mwclient/client.py index f0c8f1b..1ea1dde 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -469,22 +469,23 @@ class Site(object): ext=self.ext) while True: - try: - args = {'fil...
mwclient__mwclient-365
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mwclient/listing.py:Category.__init__" ], "edited_modules": [ "mwclient/listing.py:Category" ] }, "file": "mwclient/listing.py" }, { "changes": { "added_e...
mwclient/mwclient
722fc47ddaa8b9a041ce4bc441125b50a65aa199
When you create a page, mwclient still thinks it doesn't exist Another one I found writing integration tests. To reproduce: ``` pg = site.pages["NonExistentPage"] pg.exists pg.edit("Hi I'm a new page", "create new page") pg.exists ``` `pg.exists` will be `False` both times, when obviously it should be `True` the...
diff --git a/mwclient/listing.py b/mwclient/listing.py index ef5780f..546d8c4 100644 --- a/mwclient/listing.py +++ b/mwclient/listing.py @@ -1,5 +1,5 @@ from typing import ( # noqa: F401 - Optional, Tuple, Any, Union, Iterator, Mapping, Iterable, Type + Optional, Tuple, Any, Union, Iterator, Mapping, Iterable, ...
mwouts__itables-137
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "itables/sample_dfs.py:get_dict_of_test_dfs" ], "edited_modules": [ "itables/sample_dfs.py:get_dict_of_test_dfs" ] }, "file": "itables/sample_dfs.py" } ]
mwouts/itables
c8316e69d9ea92b2079fe8dfb15107e8e065571e
Categorical index are sorted in the alphabetical order Should be the categories order instead
diff --git a/docs/sample_dataframes.md b/docs/sample_dataframes.md index 6b92dc4..7bcb355 100644 --- a/docs/sample_dataframes.md +++ b/docs/sample_dataframes.md @@ -78,6 +78,18 @@ show(dict_of_test_dfs["time"]) show(dict_of_test_dfs["object"]) ``` +## ordered_categories + +```{code-cell} +show(dict_of_test_dfs["ord...
mwouts__itables-170
[ { "changes": { "added_entities": [ "itables/datatables_format.py:convert_bigints_to_str" ], "added_modules": [ "itables/datatables_format.py:convert_bigints_to_str" ], "edited_entities": [ "itables/datatables_format.py:TableValuesEncoder.default", "i...
mwouts/itables
a4a39f7463c975258ecef3ac8bc07d56ee421f3e
Not displaying large numbers (>16 digits) correctly The issue: Large numbers only display first 16 digits, 17th digit is rounded (sometimes incorrectly) and the rest are 0s. How to replicate: ```py from itables import show import pandas as pd a = pd.DataFrame( { "Name": [ "Braund, Mr...
diff --git a/docs/changelog.md b/docs/changelog.md index 880673a..cad8da5 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,15 +1,16 @@ ITables ChangeLog ================= -1.5.2 (2023-03-??) +1.5.2 (2023-03-26) ------------------ -**Added** -- We have added a CI configuration where we test `itables` ...
mwouts__itables-214
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "itables/javascript.py:_table_header" ], "edited_modules": [ "itables/javascript.py:_table_header" ] }, "file": "itables/javascript.py" }, { "changes": { "...
mwouts/itables
500d36c0009596c66e6fef88b59a29a9d219135f
html in column names I was attempting to use itables to present units in the column name. I found that the HTML tags work well in cell values but not in table headers: ``` python from itables import show test_df = pd.DataFrame( {"some_nm<sup>2</sup>": ["some val <sup>2</sup>", "<b>Bold Value</b>"]} ) sh...
diff --git a/docs/changelog.md b/docs/changelog.md index 1bec8a1..96145cf 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,6 +1,13 @@ ITables ChangeLog ================= +1.6.3 (2023-12-10) +------------------ + +**Changed** +- HTML in table columns is supported ([#213](https://github.com/mwouts/itables...
mwouts__itables-324
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/itables/version.py" } ]
mwouts/itables
a03d71c61aa7a509031d2bbdce94dd7a6642e1d2
Deploy a sample Shiny app that uses ITables This can be done using https://shiny.posit.co/py/docs/shinylive.html. See also https://www.appsilon.com/post/shiny-for-python-deploy-github-pages
diff --git a/README.md b/README.md index be1d8c5..b68df60 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Conda Version](https://img.shields.io/conda/vn/conda-forge/itables.svg)](https://anaconda.org/conda-forge/itables) [![pyversions](https://img.shields.io/pypi/pyversions/itables.svg)](https://pypi.python...
mwouts__itables-352
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/itables/downsample.py:_downsample" ], "edited_modules": [ "src/itables/downsample.py:_downsample" ] }, "file": "src/itables/downsample.py" }, { "changes": {...
mwouts/itables
a3dfd990ab1081c1022c8adc3a1d0791d21072de
AssertionError because downsampled row count is odd If the row selection is enabled and the table is downsampled, then the number of downsampled rows must be even. Otherwise `warn_if_selected_rows_are_not_visible` throws an assertion error. I don't see a way to control the number of downsampled rows (except by using `...
diff --git a/LICENSE b/LICENSE index 499aa22..3f76a9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019-2024 Marc Wouts +Copyright (c) 2019-2025 Marc Wouts Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
mwouts__jupytext-1175
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/jupytext/cell_reader.py:MarkdownCellReader.find_cell_end", "src/jupytext/cell_reader.py:DoublePercentScriptCellReader.find_cell_end" ], "edited_modules": [ "src/jupytext/...
mwouts/jupytext
405617f43f566de79aecde37863614715884e0e6
Bibliography section becomes code This is really to ask for advice about a problem I have with jupyter-book files. For some files, I want to list ciations. The obvious way to do this, is to include a version of this Markdown cell at the end of the page (RMarkdown format) - see https://jupyterbook.org/en/stable/cont...
diff --git a/src/jupytext/cell_reader.py b/src/jupytext/cell_reader.py index e4ea21c..738cd24 100644 --- a/src/jupytext/cell_reader.py +++ b/src/jupytext/cell_reader.py @@ -443,7 +443,9 @@ class MarkdownCellReader(BaseCellReader): return i - 1, i, False return i, i, False ...
mwouts__jupytext-1180
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/jupytext/cell_reader.py:MarkdownCellReader.find_cell_end" ], "edited_modules": [ "src/jupytext/cell_reader.py:MarkdownCellReader" ] }, "file": "src/jupytext/cell_re...
mwouts/jupytext
4a133b588bc569997b962ca98e038e91dbbf5aef
Bibliography section becomes code This is really to ask for advice about a problem I have with jupyter-book files. For some files, I want to list ciations. The obvious way to do this, is to include a version of this Markdown cell at the end of the page (RMarkdown format) - see https://jupyterbook.org/en/stable/cont...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45e8a50..2498ce1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,10 @@ on: paths-ignore: - "CHANGELOG.md" branches: [main] - pull_request: + # We use pull_request_target rather than pull_request +...
mwouts__jupytext-1202
[ { "changes": { "added_entities": [ "src/jupytext/contentsmanager.py:JupytextContentsManager._get_with_no_require_hash_argument", "src/jupytext/contentsmanager.py:JupytextContentsManager._get_with_require_hash_argument" ], "added_modules": null, "edited_entities": [ ...
mwouts/jupytext
f2e1b9d077f9b2abff5af109072a70b7a588a2ae
Incompatibility with jupyter_server 2.11.0 ## Description `jupyter_server` version 2.11.0 broke `JupytextContentsManager`, making jupytext unusable. ## Reproduce 1. Install both `jupytext` and `jupyter_server==2.11.0` 2. Start jupyterlab `jupyter lab` (the issue also occurs with notebook though) 3. Open the ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 054f364..51e8de1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ Jupytext ChangeLog ================== -1.16.5-dev ----------- +1.16.5 (2024-12-15) +------------------- **Fixed** -- We have fixed a notebook corruption issue when using Jupytext with Ju...
mwouts__jupytext-1238
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/jupytext/config.py:load_jupytext_configuration_file" ], "edited_modules": [ "src/jupytext/config.py:load_jupytext_configuration_file" ] }, "file": "src/jupytext/con...
mwouts/jupytext
29a979fbe87cf2f09b5a961eadb0479d4067760d
Pair ipynb with files in subfolders one level down I would like to pair `.ipynb` files with `.py` files according to this structure: ``` . ├── jupytext.toml ├── Alpha/ │ ├── notebooks_py/ │ │ └── notebook.py │ └── notebook.ipynb ├── Beta/ │ ├── notebooks_py/ │ │ └── notebook.py │ └── notebo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a577ff6..09e9b56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,11 @@ Jupytext ChangeLog **Fixed** - We have fixed a typo when `build_jupytext_contents_manager_class` can't be imported ([#1162](https://github.com/mwouts/jupytext/issues/1162)) +- Some dependenc...
mwouts__jupytext-1366
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/jupytext/cli.py:jupytext_single_file", "src/jupytext/cli.py:exec_command", "src/jupytext/cli.py:pipe_notebook" ], "edited_modules": [ "src/jupytext/cli.py:jupytex...
mwouts/jupytext
ef6afaaa032edea57c8867949b47335463a2321f
Quiet option ignored for --pipe option Using `--pipe `always prints ```[jupytext] Executing python ...``` statements, ignoring the `-q` option.
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa68c85f..0a3e6312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,14 @@ Jupytext ChangeLog **Changed** - Jupytext's default contents manager is now derived from the asynchronous AsyncLargeFileManager. Thanks to [Darshan Poudel](https://github.com/Darshan808) fo...
mwouts__jupytext-368
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "jupytext/cell_reader.py:MarkdownCellReader" ] }, "file": "jupytext/cell_reader.py" } ]
mwouts/jupytext
4d6bef1c6cc78111ce1b3560b07965332c0c951c
.md round-tripping Broken on %%python3 magic Just noticed this in a notebook that uses `%%python3` magic to demonstrate code execution in separate cells. If I'm editing a markdown file in Jupyter notebook UI under Jupytext, if I have a code cell: ``` %%python3 a = 1 print(a) ``` if I save the file and then...
diff --git a/HISTORY.rst b/HISTORY.rst index 9508d62..2cc996b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -28,6 +28,7 @@ Release History - Fixed an inconsistent round trip (code cell with ``"cat"`` being converted to a markdown cell) in the ``py:light`` format (#339) - ``jupytext --test textfile.ext`` now really co...
mwouts__jupytext-372
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cell_reader.py:BaseCellReader.__init__", "jupytext/cell_reader.py:BaseCellReader.find_cell_content", "jupytext/cell_reader.py:ScriptCellReader.uncomment_code_and_magics", ...
mwouts/jupytext
20586e5cde0f3502478e5492ccdf04b96687ee00
Escape IPython's magic help ("?" and "??") Getting help in a code cell with something like `float?` or `float??` runs in the notebook but fails in the generated .py file. It would be nice to consider this IPython magic and to comment it out in the .py (which otherwise fails to run, or which makes the automatic convers...
diff --git a/HISTORY.rst b/HISTORY.rst index aabe4f5..04c4a5e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -15,6 +15,7 @@ Release History - Markdown and raw cells can be quoted with triple quotes in the ``py:percent`` format. And Markdown cells can start with just ``# %% [md]`` (#305) - The light format uses ``# + [...
mwouts__jupytext-380
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "jupytext/header.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/metadata...
mwouts/jupytext
c189035ff88a02408a512115bd589b2c28606ba8
Jupytext should not remove metadata from the YAML header in text files The file `funnel-charts.md` contains a `plotly` entry in the YAML header, but a round trip in Jupytext [removes it](https://github.com/mwouts/plotly.py-docs/commit/335c5d1ceea263d36da2cfe895fcf3c6b901feeb#diff-79a654256c6b0d4336e702730725dc0c). I...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8194baf..832e40b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,8 +13,9 @@ - The light format uses `# + [markdown]` rather than the previous `cell_type` metadata to identify markdown cells with metadata (#356) - Explicit Markdown cells in the light format `# + [mark...
mwouts__jupytext-420
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cli.py:jupytext_single_file" ], "edited_modules": [ "jupytext/cli.py:jupytext_single_file" ] }, "file": "jupytext/cli.py" } ]
mwouts/jupytext
65a47b0908a76e692c27b8c9679fe6a95ec8fe35
Argument --test fails if run on different jupytext versions `jupytext --test --to ipynb FILE.py` fails with: ```diff [jupytext] Reading FILE.py --- expected +++ actual @@ -5,7 +5,7 @@ # extension: .py # format_name: light # format_version: '1.5' -# jupytext_version: 1.3.0 +# j...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c33b2fb..df8a3d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ------------------ **Fixed** -- Code cells in the Markdown format can contain triple backticks inside multiline strings (#419) +- Code cells in the Markdown format can contain triple backtic...
mwouts__jupytext-425
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cell_to_text.py:BaseCellExporter.__init__", "jupytext/cell_to_text.py:LightScriptCellExporter.is_code" ], "edited_modules": [ "jupytext/cell_to_text.py:BaseCellExpor...
mwouts/jupytext
3a6512d8ee2141ff21b1f476b5d683267f4f8720
how to get rid of jupytext_version in the notebook metadata Hey there as the tile has it, my use case would require to get rid of `jupytext_version` in my notebooks metadata for some time I have been successfully running in a mode where `language_info` is stripped from said notebook metadata (actually it's kind o...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 60088d9..af4397d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ -1.3.3 (2020-01-??) +1.3.3 (2020-01-27) ------------------ **Added** - Jupytext has a logo! Many thanks to Kyle Kelley for contributing the actual logo (#423), and to Chris Holdgraf for su...
mwouts__jupytext-430
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cli.py:jupytext_single_file", "jupytext/cli.py:pipe_notebook" ], "edited_modules": [ "jupytext/cli.py:jupytext_single_file", "jupytext/cli.py:pipe_notebook" ...
mwouts/jupytext
0dec43d03be1144f042d28cb8f91ebe2378669d8
Jupytext --to script uses the same destination extension for all the notebooks Running `jupytext --to script NotebookExamples\*\*\*.ipynb` on [dotnet\interactive](https://github.com/dotnet/interactive/) only produces `.cs` files, when we would have expected `.cs`, `.fs` and `.ps1` files.
diff --git a/jupytext/cli.py b/jupytext/cli.py index 2b250fe..dff62c1 100644 --- a/jupytext/cli.py +++ b/jupytext/cli.py @@ -315,7 +315,7 @@ def jupytext_single_file(nb_file, args, log): # Compute actual extension when using script/auto, and update nb_dest if necessary dest_fmt = args.to if dest_fmt and ...
mwouts__jupytext-439
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "jupytext/magics.py" } ]
mwouts/jupytext
7fd991f2dd402a900c40cb385e7bfc586790094e
exclamation mark not correctly handled I am using ```bash pip freeze | grep jupytext jupytext==1.2.4 ``` and the following MWE file (say `Untitled.md`) ```markdown try: !echo jo except: pass ``` (which is intended to be run as a jupyter notebook inside a jupyter server using the jupytext extension, ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e325459..90ac8aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ **Fixed** - `jupytext --to script *.ipynb` now computes the script extension for each notebook (#428) - Fix shebang handling for languages with non-# comments, by Jonas Bushart (#434) +- Inde...
mwouts__jupytext-470
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/formats.py:long_form_one_format", "jupytext/formats.py:validate_one_format" ], "edited_modules": [ "jupytext/formats.py:long_form_one_format", "jupytext/form...
mwouts/jupytext
cf676abf3255b59c786e8632f9f7b639e0bc53ab
jupytext.write doesn't error if `fmt` is unknown, but the output file has a known extension Just playing around with MyST -> ipynb -> MyST right now. The ipynb syncing works beautifully! I love it I am having a hard time getting MyST code cells to render as `ipynb` code cells. E.g., this markdown: ```` --- j...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fd5cfe3..45aa942 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ **Fixed** - Fixed the CLI example for not commenting out magic commands: `--opt comment_magics=false`. In addition, most of the `jupytext` commands in `using-cli.md` are now tested! (#465) +-...
mwouts__jupytext-472
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/stringparser.py:StringParser.read_line" ], "edited_modules": [ "jupytext/stringparser.py:StringParser" ] }, "file": "jupytext/stringparser.py" } ]
mwouts/jupytext
271fa1cf8b17a8b3a62dccca8bb8124e755449a0
Wrong cell separation when creating .ipynb from .py Let's say I work in a notebook file, paired to a `.py` file, and write one function per cell. When I re-generate the `.ipynb` notebook from the `.py` file I have noticed that some functions now live in the same cell. This is best illustrated by the images below....
diff --git a/CHANGELOG.md b/CHANGELOG.md index 45aa942..f22230e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ **Fixed** - Fixed the CLI example for not commenting out magic commands: `--opt comment_magics=false`. In addition, most of the `jupytext` commands in `using-cli.md` are now tested! (#465) - `...
mwouts__jupytext-573
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "jupytext/config.py" } ]
mwouts/jupytext
69a75ba5d18eb35f457048058a07d924a19c2eeb
Jupytext's MyBinder link is broken The MyBinder launch fails. Apparently it's trying to parse `jupytext.py` as a configuration file when converting the `get_started.md` notebook :smile: ![Screenshot from 2020-07-06 22-06-19](https://user-images.githubusercontent.com/29915202/86636835-0cafab80-bfd5-11ea-99b6-dbd9e363b...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d78bca..fc9fd1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ **Fixed** - Preserve indentation when commenting out magic commands (#437) +- Fixed MyBinder - `jupytext.py` is not a configuration file (#559, #567) 1.5.1 (2020-07-05) diff --git a/jupy...
mwouts__jupytext-581
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cell_reader.py:DoublePercentScriptCellReader.__init__" ], "edited_modules": [ "jupytext/cell_reader.py:DoublePercentScriptCellReader" ] }, "file": "jupytext/ce...
mwouts/jupytext
a8992b01db6d9c0133d8d3dc3175c597e8028f51
Hide metadata header in markdown Is it possible, or would it be possible to hide the metedata header added when reading and writing to markdown? For example, this is the header on one markdown document: ```markdown --- jupyter: jupytext: text_representation: extension: .md format_name: mar...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eb0fa98..66fba58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,12 @@ **Added** - Activated GitHub code scanning alerts +- New option `hide_notebook_metadata` to encapsulate the notebook metadata in an HTML comment (#527) **Changed** - Install Jupytext fr...
mwouts__jupytext-582
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cell_reader.py:DoublePercentScriptCellReader.__init__" ], "edited_modules": [ "jupytext/cell_reader.py:DoublePercentScriptCellReader" ] }, "file": "jupytext/ce...
mwouts/jupytext
a8992b01db6d9c0133d8d3dc3175c597e8028f51
Black interferes with py:percent format in indented code blocks. I am having an issue where py:percent notebooks that have cells divided within an if statement get destroyed by black when using --pipe black ``` # %% if __name__ == '__main__': print(1) # %% print(2) ``` gets reformatted into the f...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eb0fa98..732c405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ **Changed** - Install Jupytext from source on MyBinder to avoid cache issues (#567) - Skip the tests that execute a notebook on Windows to avoid timeout issues (#489) +- The `# %%` cell marker...
mwouts__jupytext-585
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cli.py:exec_command", "jupytext/cli.py:pipe_notebook" ], "edited_modules": [ "jupytext/cli.py:exec_command", "jupytext/cli.py:pipe_notebook" ] }, ...
mwouts/jupytext
d3be2bf839c25e8ce5195bf42407b438910b9086
Running isort on Jupytext notebooks represented as scripts break some cells This is related to #446 - It would be great to be able to run `isort` easily on a Jupytext notebook, however ATM it does not work that well. Indeed, `isort` seems to move the comments preceding an `import` together with the import. Thus, wh...
diff --git a/.github/workflows/continuous-integration-conda.yml b/.github/workflows/continuous-integration-conda.yml index f779772..68d356b 100644 --- a/.github/workflows/continuous-integration-conda.yml +++ b/.github/workflows/continuous-integration-conda.yml @@ -60,6 +60,8 @@ jobs: conda install mock --fre...
mwouts__jupytext-588
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "jupytext/magics.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules"...
mwouts/jupytext
213acee31cb2d36b8ad36aa80dcd0f49ab922e48
Black has syntax error with valid iPython magic when using --pipe To reproduce: This occurs on `black, version 19.10b0` and 'jupytext==1.5.2'. When --sync a notebook to py:percent format using the following command: ```bash jupytext --update-metadata '{"jupytext":{"notebook_metadata_filter":"all", "cell_metadata...
diff --git a/.github/workflows/continuous-integration-conda.yml b/.github/workflows/continuous-integration-conda.yml index 68d356b..a16fa4f 100644 --- a/.github/workflows/continuous-integration-conda.yml +++ b/.github/workflows/continuous-integration-conda.yml @@ -65,7 +65,8 @@ jobs: conda install autopep8 -...
mwouts__jupytext-608
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cell_to_text.py:BaseCellExporter.__init__" ], "edited_modules": [ "jupytext/cell_to_text.py:BaseCellExporter" ] }, "file": "jupytext/cell_to_text.py" }, { ...
mwouts/jupytext
1f355fec4fa3a29b6d6a78f00dee27b05017d613
configure magic conversion is seamless %%configure magic code conversion is not seamless, for example: ``` %%configure -f {"executorMemory": "3072M", "executorCores": 4, "numExecutors":10} ``` gets transformed to python code & r code ``` # %%configure -f {"executorMemory": "3072M", "executorCores": 4, "numExe...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 95dfc5a..f65d2a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,12 @@ - New option `root_level_metadata_as_raw_cell`. Set it to `False` if you don't want to see root level metadata of R Markdown notebooks as a raw cell in Jupyter (#415) - New option `doxygen_e...
mwouts__jupytext-609
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cell_to_text.py:BaseCellExporter.__init__" ], "edited_modules": [ "jupytext/cell_to_text.py:BaseCellExporter" ] }, "file": "jupytext/cell_to_text.py" }, { ...
mwouts/jupytext
2cee128f047fcfd6626f3eb123eebee05c89e6e9
Set-formats on fresh text file based on configuration This is an extension of a related issue #485. I would like to be able to set the format on a fresh text file or modify the text file based on the current configuration (local if available else global) without specifying the argument to `--set-formats`. For ex...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cd3a5d..e32faed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,10 @@ - New option `root_level_metadata_as_raw_cell`. Set it to `False` if you don't want to see root level metadata of R Markdown notebooks as a raw cell in Jupyter (#415) - New option `doxygen_eq...
mwouts__jupytext-612
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jupytext/cli.py:parse_jupytext_args", "jupytext/cli.py:jupytext", "jupytext/cli.py:jupytext_single_file" ], "edited_modules": [ "jupytext/cli.py:parse_jupytext_args",...
mwouts/jupytext
6d64247188ec612a17f9b4570019a508a7f149a8
Be able to specify --execute run_path from CLI So I have some ipynb files that only work if run the root of my project, but there doesn't seem to be an easy way to specify that the run_path should be the CWD instead of the path of input path or output path of the arguments. The only way to get something like this behav...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dcc24b..b4b63aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -1.6.0-dev (2020-08-??) +1.6.0 (2020-08-??) ---------------------- **Added** @@ -14,6 +14,7 @@ of R Markdown notebooks as a raw cell in Jupyter (#415) - Warn if 'Include Metadata' is off whe...