question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Numpy arrays not writable

See original GitHub issue

Description

What steps will reproduce the problem?

whenever i open a variable in variable explorer, i can only resize but neither the format and change background color option is working. plz respond to this problem.

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.4
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies

atomicwrites >=1.2.0         :  1.3.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
cloudpickle >=0.5.0          :  1.2.2 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
IPython >=4.0                :  7.10.2 (OK)
jedi =0.14.1                 :  0.14.1 (OK)
nbconvert >=4.0              :  5.6.1 (OK)
numpydoc >=0.6.0             :  0.9.1 (OK)
pexpect >=4.4.0              :  4.7.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
psutil >=0.3                 :  5.6.7 (OK)
pygments >=2.0               :  2.5.2 (OK)
pylint >=0.25                :  2.4.4 (OK)
pyls >=0.31.2;<0.32.0        :  0.31.2 (OK)
zmq >=17                     :  18.1.0 (OK)
qdarkstyle >=2.7             :  2.7 (OK)
qtawesome >=0.5.7            :  0.6.0 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
rtree >=0.8.3                :  0.8.3 (OK)
sphinx >=0.6.6               :  2.3.0 (OK)
spyder_kernels >=1.8.1;<2.0.0:  1.8.1 (OK)
watchdog                     :  None (OK)
cython >=0.21                :  0.29.14 (OK)
matplotlib >=2.0.0           :  3.1.1 (OK)
numpy >=1.7                  :  1.17.4 (OK)
pandas >=0.13.1              :  0.25.3 (OK)
scipy >=0.17.0               :  1.3.2 (OK)
sympy >=0.7.3                :  1.5 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ab-5860commented, Jan 25, 2020

Thanks for your help. Yes your assumption is correct.

On Sat, 25 Jan 2020, 22:53 Carlos Cordoba, notifications@github.com wrote:

@steff456 https://github.com/steff456, please verify if my assumption is correct. If that’s the case, we need to change the window title of our array editor (see the screenshot in #11331 (comment) https://github.com/spyder-ide/spyder/issues/11331#issuecomment-575272837) from NumPy array (read only) to NumPy object array (read only).

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/11331?email_source=notifications&email_token=AH5M6HQGNNUENBVU3JXZON3Q7RYQDA5CNFSM4KHVKGM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5A76I#issuecomment-578424825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5M6HW7EGO3Q5NUP6DR5XLQ7RYQDANCNFSM4KHVKGMQ .

0reactions
ArthurShen8118commented, May 23, 2020

How to change the title of windows from NumPy array (read only) to NumPy object array (read only).

Read more comments on GitHub >

github_iconTop Results From Across the Web

UserWarning: The given NumPy array is not writeable
cpp:141: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to ...
Read more >
The given NumPy array is not writeable, and PyTorch does not ...
Why i'm getting the message "UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors."? - Stack ...
Read more >
How to make a NumPy array read-only? - GeeksforGeeks
Let's discuss how to make NumPy array immutable i.e that can not be rewritten or can't be changed. This can be done by...
Read more >
Array creation — NumPy v1.24 Manual
If you are not careful with dtype assignments, you can get unwanted ... method to read and write NumPy arrays directly (mind your...
Read more >
numpy.ndarray.flags — NumPy v1.24 Manual
The data area can be written to. Setting this to False locks the data, making it read-only. A view (slice, etc.) inherits WRITEABLE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found