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.

"s is not iterable" on PySpark Kernel

See original GitHub issue

Checklist prior to opening an issue

  • I have followed fully the installation steps laid out in the documentation site.
  • I have restarted jupyterlab.
  • I have read the FAQ section in the documentation site.

Describe the bug I successfully installed jupyterlab_code_formatter and it works on Python notebooks; however, I would also like it to format PySpark notebooks (still Python), but I get the following error: s is not iterable. The workaround is to switch the kernel back to Python then format then rever it back to PySpark. Is there a way to fix this via the config?

I’m assuming this line of code is relevant

Diagnostic commands Please attach the output of the following commands (please format them properly)

  • pip freeze

  • jupyter labextension list

  • jupyter serverextension list

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Happy to provide the diagnostic command if that’s helpful here! Also happy to contribute.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ryantam626commented, Apr 13, 2020

Yep looks sensible, a PR would be greatly appreciated - did you test with a local installation of the updated plugin by the way?

0reactions
devsteincommented, Apr 20, 2020

@ryantam626 Works! Thanks for all the help on this 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

PySpark - TypeError: Column is not iterable
Solution for TypeError: Column is not iterable. PySpark add_months() function takes the first argument as a column and the second argument ...
Read more >
apache spark - pyspark Column is not iterable - Stack Overflow
this will get the required functions to aggregate the data if datatypes of columns are right. I fixed the similar issue by adding...
Read more >
Length Value of a column in pyspark - Databricks Community
Hello,. i am using pyspark 2.12. After Creating Dataframe can we measure the length value for each row. For Example: I am measuring...
Read more >
TypeError: 'NoneType' object is not iterable #4867 - GitHub
In ran into this issue when I tried to apply the 2_new_data_model.md example to my own dataset. I found out that some of...
Read more >
sklearn.decomposition.KernelPCA
Unlike PCA , KernelPCA 's inverse_transform does not reconstruct the mean of data when 'linear' kernel is used due to the use of...
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